diff options
author | Linux Build Service Account <lnxbuild@localhost> | 2015-03-18 10:49:27 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2015-03-18 10:49:27 -0700 |
commit | 78382ec263469b68f5ce356f0dca8f47c4b9a7bf (patch) | |
tree | acf9a6afc71d81fcc41383886ec4359266d18ba3 /src | |
parent | dc204f493414cef4e9503e9fd38c91e122004c42 (diff) | |
parent | 96ab7f80b0288a98efee7bf04b4612ecd5cdacb9 (diff) | |
download | android_packages_apps_Snap-78382ec263469b68f5ce356f0dca8f47c4b9a7bf.tar.gz android_packages_apps_Snap-78382ec263469b68f5ce356f0dca8f47c4b9a7bf.tar.bz2 android_packages_apps_Snap-78382ec263469b68f5ce356f0dca8f47c4b9a7bf.zip |
Merge "SnapdragonCamera: Update the preview thumbnail after continuous shot"
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/camera/PhotoModule.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/com/android/camera/PhotoModule.java b/src/com/android/camera/PhotoModule.java index 6ea6b5c8e..9c3cd4858 100644 --- a/src/com/android/camera/PhotoModule.java +++ b/src/com/android/camera/PhotoModule.java @@ -250,6 +250,9 @@ public class PhotoModule private SoundPool mSoundPool; private int mRefocusSound; + private byte[] mLastJpegData; + private int mLastJpegOrientation = 0; + private Runnable mDoSnapRunnable = new Runnable() { @Override public void run() { @@ -1314,7 +1317,14 @@ public class PhotoModule if (mAnimateCapture) { mUI.animateCapture(jpegData, orientation, mMirror); } + } else { + // In long shot mode, we do not want to update the preview thumbnail + // for each snapshot, instead, keep the last jpeg data and orientation, + // use it to show the final one at the end of long shot. + mLastJpegData = jpegData; + mLastJpegOrientation = orientation; } + } else { mJpegImageData = jpegData; if (!mQuickCapture) { @@ -2012,6 +2022,7 @@ public class PhotoModule if (mCameraState == LONGSHOT) { mLongshotActive = false; mCameraDevice.setLongshot(false); + mUI.animateCapture(mLastJpegData, mLastJpegOrientation, mMirror); if (!mFocusManager.isZslEnabled()) { setupPreview(); } else { |