From cd9fe44e1a42dcb328772b44c6ca0434a1c7a49f Mon Sep 17 00:00:00 2001 From: Likai Ding Date: Fri, 6 Jun 2014 11:25:20 +0800 Subject: Camera2: disable the shutter button when not previewing Camera app will crash if the shutter button is clicked while not previewing. Disable the shutter button in onStopPreview() as it's called by onSurfaceTextureDestroyed(). Change-Id: Ied369610c590323b977b4ac1c3150c6c905e9466 CRs-Fixed: 669190 --- src/com/android/camera/VideoModule.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/com/android/camera/VideoModule.java b/src/com/android/camera/VideoModule.java index 68bc4c39c..a346d0560 100644 --- a/src/com/android/camera/VideoModule.java +++ b/src/com/android/camera/VideoModule.java @@ -1074,6 +1074,7 @@ public class VideoModule implements CameraModule, mCameraDevice.stopPreview(); mPreviewing = false; mStopPrevPending = false; + mUI.enableShutter(false); } private void closeCamera() { -- cgit v1.2.3