summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/com/android/camera/CaptureModule.java16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/com/android/camera/CaptureModule.java b/src/com/android/camera/CaptureModule.java
index 8f2006a1c..c914b8602 100644
--- a/src/com/android/camera/CaptureModule.java
+++ b/src/com/android/camera/CaptureModule.java
@@ -1456,13 +1456,15 @@ public class CaptureModule implements CameraModule, PhotoController,
applySettingsForUnlockExposure(mPreviewRequestBuilder[id], id);
setAFModeToPreview(id, mControlAFMode);
mTakingPicture[id] = false;
- mActivity.runOnUiThread(new Runnable() {
- @Override
- public void run() {
- mUI.stopSelfieFlash();
- mUI.enableShutter(true);
- }
- });
+ if (id == getMainCameraId()) {
+ mActivity.runOnUiThread(new Runnable() {
+ @Override
+ public void run() {
+ mUI.stopSelfieFlash();
+ mUI.enableShutter(true);
+ }
+ });
+ }
} catch (CameraAccessException e) {
e.printStackTrace();
}