summaryrefslogtreecommitdiff
path: root/src/com/android/camera/CaptureModule.java
diff options
context:
space:
mode:
authorjiaoyuan <jiaoyuan@codeaurora.org>2019-08-30 17:46:52 +0800
committerGerrit - the friendly Code Review server <code-review@localhost>2019-09-06 02:55:37 -0700
commitcdb7946a46b3491857f19155aa51402b1b85595e (patch)
tree4b79a4bdafeb2af0f57f464f18f412306665ccf6 /src/com/android/camera/CaptureModule.java
parent10847a9e643d86e85c6440c44bfc1ed83436102c (diff)
SnapdraongCamera: Camera IllegalStateException
when session is already closed, call abortCaptures will throw IllegalStateException, catch it. Change-Id: I61dfb5aad597e5ae58fb23e48422f13d08df5748
Diffstat (limited to 'src/com/android/camera/CaptureModule.java')
-rwxr-xr-xsrc/com/android/camera/CaptureModule.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/camera/CaptureModule.java b/src/com/android/camera/CaptureModule.java
index e1011afc6..aeda80559 100755
--- a/src/com/android/camera/CaptureModule.java
+++ b/src/com/android/camera/CaptureModule.java
@@ -3616,6 +3616,8 @@ public class CaptureModule implements CameraModule, PhotoController,
throw new RuntimeException("Interrupted while trying to lock camera closing.", e);
} catch (CameraAccessException e) {
e.printStackTrace();
+ } catch (IllegalStateException e) {
+ e.printStackTrace();
} finally {
mCurrentSessionClosed = true;
mCameraOpenCloseLock.release();