summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2019-06-14 10:41:24 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2019-06-14 10:41:24 -0700
commitecfe461ec1b15cd9443b5f3701b43cb9d2928a07 (patch)
tree68b042647075fd0c703b6b9409f021028d35e0bf /src
parent5a478c28b24693f84079f58b2b3cd0d106081b2d (diff)
parent0cc8961b15bf74f2b94a2e75ba98b87306b8ef48 (diff)
downloadandroid_packages_apps_Snap-ecfe461ec1b15cd9443b5f3701b43cb9d2928a07.tar.gz
android_packages_apps_Snap-ecfe461ec1b15cd9443b5f3701b43cb9d2928a07.tar.bz2
android_packages_apps_Snap-ecfe461ec1b15cd9443b5f3701b43cb9d2928a07.zip
Merge "SnapdragonCamera: Add shutter animation for APP-ZSL mode" into camera-SnapdragonCamera.lnx.2.0
Diffstat (limited to 'src')
-rw-r--r--src/com/android/camera/CaptureModule.java7
-rwxr-xr-xsrc/com/android/camera/imageprocessor/PostProcessor.java10
2 files changed, 17 insertions, 0 deletions
diff --git a/src/com/android/camera/CaptureModule.java b/src/com/android/camera/CaptureModule.java
index 3ea667626..a16b769a7 100644
--- a/src/com/android/camera/CaptureModule.java
+++ b/src/com/android/camera/CaptureModule.java
@@ -2337,6 +2337,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,
@@ -2750,6 +2756,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