diff options
author | xianming wang <mingwax@codeaurora.org> | 2019-01-11 17:33:45 +0800 |
---|---|---|
committer | xianming wang <mingwax@codeaurora.org> | 2019-01-18 17:20:23 +0800 |
commit | 4f17836c0ee26e6c6739f2c4e97c91500ddd32b7 (patch) | |
tree | eae44575a0022aeac8db7608743180e683a2e0d5 /src/com/android/camera/CaptureModule.java | |
parent | c58907eeea2e015791f861cec1cdae291228997a (diff) | |
download | android_packages_apps_Snap-4f17836c0ee26e6c6739f2c4e97c91500ddd32b7.tar.gz android_packages_apps_Snap-4f17836c0ee26e6c6739f2c4e97c91500ddd32b7.tar.bz2 android_packages_apps_Snap-4f17836c0ee26e6c6739f2c4e97c91500ddd32b7.zip |
SnapdragonCamera: Enable ShutterButton when HDR receive image
Enable ShutterButton when HDR is ON and receive the image.
CRs-Fixed: 2378839
Change-Id: I950d3d5d96d2972a5be446596220dcb9ddd4fbd7
Diffstat (limited to 'src/com/android/camera/CaptureModule.java')
-rwxr-xr-x | src/com/android/camera/CaptureModule.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/com/android/camera/CaptureModule.java b/src/com/android/camera/CaptureModule.java index f06521720..4c746353c 100755 --- a/src/com/android/camera/CaptureModule.java +++ b/src/com/android/camera/CaptureModule.java @@ -2907,6 +2907,20 @@ public class CaptureModule implements CameraModule, PhotoController, } } + public void enableShutterButtonOnMainThread(int id) { + if (id == getMainCameraId()) { + mActivity.runOnUiThread(new Runnable() { + @Override + public void run() { + if (captureWaitImageReceive()) { + Log.d(TAG, "image available then enable shutter button " ); + mUI.enableShutter(true); + } + } + }); + } + } + private void enableShutterAndVideoOnUiThread(int id) { if (id == getMainCameraId()) { mActivity.runOnUiThread(new Runnable() { |