diff options
author | Byunghun Jeon <bjeon@codeaurora.org> | 2016-06-10 11:05:17 -0700 |
---|---|---|
committer | Steve Kondik <steve@cyngn.com> | 2016-08-25 21:55:20 -0700 |
commit | ca4dca4582fd863b5fb7484e78878cacf343c009 (patch) | |
tree | b7434a158cac7c32fa98d5e2130a1b0a7422f70c /src/com/android | |
parent | 4716484508d92cb10f98103dce3953fa909db66d (diff) | |
download | android_packages_apps_Snap-ca4dca4582fd863b5fb7484e78878cacf343c009.tar.gz android_packages_apps_Snap-ca4dca4582fd863b5fb7484e78878cacf343c009.tar.bz2 android_packages_apps_Snap-ca4dca4582fd863b5fb7484e78878cacf343c009.zip |
SnapdragonCamera: Fix pause while taking continuous shot
When pause/resuming initialize to proper state so that
when paused/resumed while taking picture, it would not
result in a bad state
Change-Id: I597aa96b930cdb855c83d2f433470c23ab9cfa37
CRs-Fixed: 1025804
Diffstat (limited to 'src/com/android')
-rw-r--r-- | src/com/android/camera/CaptureModule.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/com/android/camera/CaptureModule.java b/src/com/android/camera/CaptureModule.java index 9fa478924..e966ea1dc 100644 --- a/src/com/android/camera/CaptureModule.java +++ b/src/com/android/camera/CaptureModule.java @@ -1449,6 +1449,14 @@ public class CaptureModule implements CameraModule, PhotoController, @Override public void onResumeBeforeSuper() { mPaused = false; + for (int i = 0; i < MAX_NUM_CAM; i++) { + mCameraOpened[i] = false; + mTakingPicture[i] = false; + } + for (int i = 0; i < MAX_NUM_CAM; i++) { + mState[i] = STATE_PREVIEW; + } + mLongshotActive = false; } private void setCurrentMode() { |