summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjinwu <jinwu@codeaurora.org>2019-02-01 10:54:32 +0800
committerGerrit - the friendly Code Review server <code-review@localhost>2019-02-18 19:03:32 -0800
commit43b7aa9dfe96b7f810e9b3c851ee1253361f4706 (patch)
tree59e9ae55ce74e25afb0763c879e8ef5e9248a1c1
parent75a5fb592c725e7be2bae49ed8a72081c9f4f5b6 (diff)
downloadandroid_packages_apps_Snap-43b7aa9dfe96b7f810e9b3c851ee1253361f4706.tar.gz
android_packages_apps_Snap-43b7aa9dfe96b7f810e9b3c851ee1253361f4706.tar.bz2
android_packages_apps_Snap-43b7aa9dfe96b7f810e9b3c851ee1253361f4706.zip
Catch the exception when stop recording
Change-Id: Ifb2c7c5c9f172d3b1bbad8419c944241baf7228d
-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 7c7d0159d..a4e7d54a7 100755
--- a/src/com/android/camera/CaptureModule.java
+++ b/src/com/android/camera/CaptureModule.java
@@ -5301,6 +5301,8 @@ public class CaptureModule implements CameraModule, PhotoController,
Log.d(TAG, "stopRecordingVideo call abortCaptures ");
} catch (CameraAccessException e) {
e.printStackTrace();
+ } catch (IllegalStateException e) {
+ e.printStackTrace();
}
}
if (!mPaused) {