summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/com/android/camera/PhotoModule.java23
1 files changed, 4 insertions, 19 deletions
diff --git a/src/com/android/camera/PhotoModule.java b/src/com/android/camera/PhotoModule.java
index eb9f31b4d..cf2ece3c6 100644
--- a/src/com/android/camera/PhotoModule.java
+++ b/src/com/android/camera/PhotoModule.java
@@ -1276,25 +1276,7 @@ public class PhotoModule
} catch (Exception e) {
}
}
- if (mRefocus && (mReceivedSnapNum == 7)) {
- Size s = mParameters.getPictureSize();
- mNamedImages.nameNewImage(mCaptureStartTime, mRefocus);
- NamedEntity name = mNamedImages.getNextNameEntity();
- String title = (name == null) ? null : name.title;
- long date = (name == null) ? -1 : name.date;
- if (title == null) {
- Log.e(TAG, "Unbalanced name/data pair");
- return;
- }
- if (date == -1) {
- Log.e(TAG, "Invalid filename date");
- return;
- }
- mActivity.getMediaSaveService().addImage(
- jpegData, title, date, mLocation, s.width, s.height,
- 0, null, mOnMediaSavedListener, mContentResolver, PIXEL_FORMAT_JPEG);
- mUI.showRefocusToast(mRefocus);
- } else if (!mRefocus) {
+ if (!mRefocus || (mRefocus && mReceivedSnapNum == 7)) {
ExifInterface exif = Exif.getExif(jpegData);
int orientation = Exif.getOrientation(exif);
if (!mIsImageCaptureIntent) {
@@ -1358,6 +1340,9 @@ public class PhotoModule
jpegData, title, date, mLocation, width, height,
orientation, exif, mOnMediaSavedListener,
mContentResolver, mPictureFormat);
+ if (mRefocus && mReceivedSnapNum == 7) {
+ mUI.showRefocusToast(mRefocus);
+ }
}
// Animate capture with real jpeg data instead of a preview frame.
if (mCameraState != LONGSHOT) {