From cb87d9529a0fcafbd5c86dc56ee88f212e8413a8 Mon Sep 17 00:00:00 2001 From: jiaoyuan Date: Fri, 15 Nov 2019 14:41:07 +0800 Subject: SnapdraongCamera: fix exception when onCaptureSequenceCompleted, surface is not ready, catch exception Change-Id: Ia58afe18210bdbebdaf372b52e6234652cd4db33 --- src/com/android/camera/CaptureModule.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/camera/CaptureModule.java b/src/com/android/camera/CaptureModule.java index d4db0b771..3ab3d926d 100755 --- a/src/com/android/camera/CaptureModule.java +++ b/src/com/android/camera/CaptureModule.java @@ -2938,7 +2938,7 @@ public class CaptureModule implements CameraModule, PhotoController, CaptureRequest.CONTROL_AF_MODE_OFF : afMode); mTakingPicture[id] = false; enableShutterAndVideoOnUiThread(id); - } catch (NullPointerException | IllegalStateException | CameraAccessException e) { + } catch (NullPointerException | IllegalStateException | CameraAccessException | IllegalArgumentException e) { Log.w(TAG, "Session is already closed"); } } -- cgit v1.2.3