summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorlikaid <likaid@codeaurora.org>2015-08-26 10:24:05 +0800
committerlikaid <likaid@codeaurora.org>2015-08-26 10:24:05 +0800
commit7589fc73718bb5ed61141d1636ba9092c8aa586f (patch)
tree95695fc339ac9a9ed0a0359922fa04617fecb45f /src
parentc68df0f4b9fdc0037bc8c9a6cc2f5bd20c259fc4 (diff)
downloadandroid_packages_apps_Snap-7589fc73718bb5ed61141d1636ba9092c8aa586f.tar.gz
android_packages_apps_Snap-7589fc73718bb5ed61141d1636ba9092c8aa586f.tar.bz2
android_packages_apps_Snap-7589fc73718bb5ed61141d1636ba9092c8aa586f.zip
SnapdragonCamera: Fix not able to view other pictures when macro mode
In Macro+ mode, it always started the refocus editor view when clicked the preview thumbnail, that caused user could not view other pictures. Reset the flag mLastPhotoTakenWithRefocus to false when onResume,start the refocus editor only one time after take a picture with macro+ mode. Change-Id: I07772772be0e6227b87c4f58c900a6c024cd2fdc CRs-Fixed: 896098
Diffstat (limited to 'src')
-rw-r--r--src/com/android/camera/PhotoModule.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/com/android/camera/PhotoModule.java b/src/com/android/camera/PhotoModule.java
index 71cb0e46c..8c2928241 100644
--- a/src/com/android/camera/PhotoModule.java
+++ b/src/com/android/camera/PhotoModule.java
@@ -2193,6 +2193,7 @@ public class PhotoModule
@Override
public void onResumeAfterSuper() {
+ mLastPhotoTakenWithRefocus = false;
// Add delay on resume from lock screen only, in order to to speed up
// the onResume --> onPause --> onResume cycle from lock screen.
// Don't do always because letting go of thread can cause delay.