summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjiaoyuan <jiaoyuan@codeaurora.org>2019-11-15 14:41:07 +0800
committerjiaoyuan <jiaoyuan@codeaurora.org>2019-11-15 14:44:13 +0800
commitcb87d9529a0fcafbd5c86dc56ee88f212e8413a8 (patch)
tree696e3609a7515c215725fec458d3149f641f8f53
parentf3b7cacf2b53b3239fc29ffddc2028be6dba89a2 (diff)
downloadandroid_packages_apps_Snap-cb87d9529a0fcafbd5c86dc56ee88f212e8413a8.zip
android_packages_apps_Snap-cb87d9529a0fcafbd5c86dc56ee88f212e8413a8.tar.gz
android_packages_apps_Snap-cb87d9529a0fcafbd5c86dc56ee88f212e8413a8.tar.bz2
SnapdraongCamera: fix exception
when onCaptureSequenceCompleted, surface is not ready, catch exception Change-Id: Ia58afe18210bdbebdaf372b52e6234652cd4db33
-rwxr-xr-xsrc/com/android/camera/CaptureModule.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/camera/CaptureModule.java b/src/com/android/camera/CaptureModule.java
index d4db0b7..3ab3d92 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");
}
}