Skip to content

Commit

Permalink
Suganthi|Kavitha - Photo taken after navigating to another page rende…
Browse files Browse the repository at this point in the history
…rs NoImage thumbnail
  • Loading branch information
kavithaRajagopalan committed Feb 19, 2013
1 parent 4ebe7b2 commit 2df1983
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3,453 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@
import android.net.Uri;
import android.provider.MediaStore;
import android.util.AttributeSet;
import android.util.Log;
import android.view.View;
import android.view.WindowManager;
import android.widget.*;
import android.widget.AdapterView;
import android.widget.GridView;
import android.widget.ImageView;
import android.widget.Toast;
import com.rapidftr.R;
import com.rapidftr.RapidFtrApplication;
import com.rapidftr.activity.RapidFtrActivity;
Expand Down Expand Up @@ -139,13 +141,14 @@ public void startCapture() {
public void saveCapture() {
try {
Bitmap bitmap = photoCaptureHelper.getCapture();
if(bitmap != null){
int rotationDegree = photoCaptureHelper.getPictureRotation();
photoCaptureHelper.deleteCaptures();
String fileName = createCaptureFileName();
Log.e("REGISTER", "start of async task ");
new EncryptImageAsyncTask(getContext(), photoCaptureHelper, bitmap, fileName, this, rotationDegree).execute();
addPhotoToPhotoKeys(fileName);
addCurrentPhotoKeyIfNotPresent(fileName);
}
} catch (Exception e) {
Toast.makeText(RapidFtrApplication.getApplicationInstance(), R.string.photo_capture_error, Toast.LENGTH_LONG).show();
}
Expand Down Expand Up @@ -217,7 +220,7 @@ public void onItemClick(AdapterView<?> parent, View view, int position, long id)
});
}

protected GridView getGalleryView() {
protected GridView getGalleryView() {
return (GridView) findViewById(R.id.photo_grid_view);
}

Expand Down
13 changes: 0 additions & 13 deletions couchdb.stderr

This file was deleted.

Loading

0 comments on commit 2df1983

Please sign in to comment.