summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorjinwu <jinwu@codeaurora.org>2018-10-22 16:24:01 +0800
committerjinwu <jinwu@codeaurora.org>2018-11-14 15:18:30 +0800
commit73de2f88c091988ea19d3ce2b981ed2b4fefe55c (patch)
tree6e56ada55332660e211577678b17f17a0c43c31f /src
parent78b730055695188e43819ddf108b63021c9d7d7c (diff)
downloadandroid_packages_apps_Snap-73de2f88c091988ea19d3ce2b981ed2b4fefe55c.tar.gz
android_packages_apps_Snap-73de2f88c091988ea19d3ce2b981ed2b4fefe55c.tar.bz2
android_packages_apps_Snap-73de2f88c091988ea19d3ce2b981ed2b4fefe55c.zip
Fix UI unnormal after snapshot failed.
Change-Id: I7dddb3233e87e4a03cdbdc7391dbbcaa2adbb283
Diffstat (limited to 'src')
-rwxr-xr-xsrc/com/android/camera/CaptureModule.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/android/camera/CaptureModule.java b/src/com/android/camera/CaptureModule.java
index 5ec6f5be9..1d52bc2c9 100755
--- a/src/com/android/camera/CaptureModule.java
+++ b/src/com/android/camera/CaptureModule.java
@@ -1936,7 +1936,7 @@ public class CaptureModule implements CameraModule, PhotoController,
private void parallelLockFocusExposure(int id) {
if (mActivity == null || mCameraDevice[id] == null
|| !checkSessionAndBuilder(mCaptureSession[id], mPreviewRequestBuilder[id])) {
- mUI.enableShutter(true);
+ enableShutterAndVideoOnUiThread(id);
warningToast("Camera is not ready yet to take a picture.");
return;
}
@@ -2011,7 +2011,7 @@ public class CaptureModule implements CameraModule, PhotoController,
private void lockFocus(int id) {
if (mActivity == null || mCameraDevice[id] == null
|| !checkSessionAndBuilder(mCaptureSession[id], mPreviewRequestBuilder[id])) {
- mUI.enableShutter(true);
+ enableShutterAndVideoOnUiThread(id);
warningToast("Camera is not ready yet to take a picture.");
return;
}
@@ -2134,7 +2134,7 @@ public class CaptureModule implements CameraModule, PhotoController,
try {
if (null == mActivity || null == mCameraDevice[id]
|| !checkSessionAndBuilder(mCaptureSession[id], mPreviewRequestBuilder[id])) {
- mUI.enableShutter(true);
+ enableShutterAndVideoOnUiThread(id);
mLongshotActive = false;
warningToast("Camera is not ready yet to take a picture.");
return;