summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEthan Chen <intervigil@gmail.com>2013-12-12 15:43:35 -0800
committerGerrit Code Review <gerrit@cyanogenmod.org>2013-12-15 23:26:57 +0000
commita15045397950d07fa60b8342463ae336f8e98866 (patch)
tree9c4d89e3aff9f67b7a8c6643365f22855e3a0ed1
parent656f7e4d0ae6a4088573380da3329c9ddbeda20b (diff)
downloadandroid_packages_apps_Gallery2-a15045397950d07fa60b8342463ae336f8e98866.tar.gz
android_packages_apps_Gallery2-a15045397950d07fa60b8342463ae336f8e98866.tar.bz2
android_packages_apps_Gallery2-a15045397950d07fa60b8342463ae336f8e98866.zip
Camera: disable camera controls while burst mode is enabled
* Fix burst mode state detection * Prevent swiping, hide camera controls during burst Change-Id: Ia901091693b16d84a34a2faf880c8316d039cf50
-rw-r--r--src/com/android/camera/PhotoModule.java17
1 files changed, 13 insertions, 4 deletions
diff --git a/src/com/android/camera/PhotoModule.java b/src/com/android/camera/PhotoModule.java
index cca9286e8..0b63b97dc 100644
--- a/src/com/android/camera/PhotoModule.java
+++ b/src/com/android/camera/PhotoModule.java
@@ -839,6 +839,10 @@ public class PhotoModule
mActivity.showSwitcher();
mActivity.setSwipingEnabled(true);
}
+ if (!mBurstShotInProgress) {
+ mActivity.showUI();
+ mActivity.setSwipingEnabled(true);
+ }
mJpegPictureCallbackTime = System.currentTimeMillis();
// If postview callback has arrived, the captured image is displayed
@@ -1398,17 +1402,22 @@ public class PhotoModule
if (seconds > 0) {
mUI.startCountDown(seconds, playSound);
} else {
+ mSnapshotOnIdle = false;
mFocusManager.doSnap();
mBurstShotsDone++;
if (mBurstShotsDone == nbBurstShots) {
mBurstShotsDone = 0;
mBurstShotInProgress = false;
- mSnapshotOnIdle = false;
- } else if (mSnapshotOnIdle == false) {
- // queue a new shot until we done all our shots
- mSnapshotOnIdle = true;
+ } else if (nbBurstShots > 1) {
mBurstShotInProgress = true;
+ // do queue snapshot while previous is in progress, see above
+ mSnapshotOnIdle = true;
+ }
+
+ if (mBurstShotInProgress) {
+ mActivity.hideUI();
+ mActivity.setSwipingEnabled(false);
}
}
}