diff options
author | xianming wang <mingwax@codeaurora.org> | 2019-05-08 16:34:05 +0800 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2019-06-02 20:00:02 -0700 |
commit | 0cc8961b15bf74f2b94a2e75ba98b87306b8ef48 (patch) | |
tree | 809da2611e50a347429905c7850716f90ded7fda | |
parent | 3bfd94586d35760af48588aa82a4549984ec1fcf (diff) | |
download | android_packages_apps_Snap-0cc8961b15bf74f2b94a2e75ba98b87306b8ef48.tar.gz android_packages_apps_Snap-0cc8961b15bf74f2b94a2e75ba98b87306b8ef48.tar.bz2 android_packages_apps_Snap-0cc8961b15bf74f2b94a2e75ba98b87306b8ef48.zip |
SnapdragonCamera: Add shutter animation for APP-ZSL mode
Add shutter animation for APP-ZSL mode.
CRs-Fixed: 2454794
Change-Id: Iecd833877831e9146007690d3d4866b3c538c722
-rw-r--r-- | src/com/android/camera/CaptureModule.java | 7 | ||||
-rwxr-xr-x | src/com/android/camera/imageprocessor/PostProcessor.java | 10 |
2 files changed, 17 insertions, 0 deletions
diff --git a/src/com/android/camera/CaptureModule.java b/src/com/android/camera/CaptureModule.java index 9e340a022..5727a2b07 100644 --- a/src/com/android/camera/CaptureModule.java +++ b/src/com/android/camera/CaptureModule.java @@ -2338,6 +2338,12 @@ public class CaptureModule implements CameraModule, PhotoController, } } + public void doShutterAnimation() { + if (mUI != null) { + mUI.doShutterAnimation(); + } + } + private CameraCaptureSession.CaptureCallback mLongshotCallBack= new CameraCaptureSession.CaptureCallback() { @Override public void onCaptureCompleted(CameraCaptureSession session, @@ -2751,6 +2757,7 @@ public class CaptureModule implements CameraModule, PhotoController, if (mLongshoting && (!mLongshotActive) && image.getTimestamp() > mLastLongshotTimestamp) { image.close(); + Log.d(TAG, "image duplicate mLastLongshotTimestamp "); return; } if (mSettingsManager.getSavePictureFormat() == SettingsManager.HEIF_FORMAT) { diff --git a/src/com/android/camera/imageprocessor/PostProcessor.java b/src/com/android/camera/imageprocessor/PostProcessor.java index e3d1c62a7..fe9f1c9d9 100755 --- a/src/com/android/camera/imageprocessor/PostProcessor.java +++ b/src/com/android/camera/imageprocessor/PostProcessor.java @@ -587,6 +587,16 @@ public class PostProcessor{ CaptureRequest request, TotalCaptureResult result) { Log.d(TAG, "reprocessImage onCaptureCompleted"); + if (mActivity != null) { + mActivity.runOnUiThread(new Runnable() { + @Override + public void run() { + if (mController != null) { + mController.doShutterAnimation(); + } + } + }); + } } @Override |