summaryrefslogtreecommitdiffstats
path: root/src_pd/com/android/camera
diff options
context:
space:
mode:
authorSanjeev Garg <sangarg@codeaurora.org>2015-10-12 11:58:01 +0530
committerSanjeev Garg <sangarg@codeaurora.org>2015-10-13 19:16:37 +0530
commit3b18d29557c3727d33688f83a32723363b97a4e3 (patch)
tree9ac96ecc31e53603f3fcb6680c348a0864494a92 /src_pd/com/android/camera
parentcf2b0f960c7f32fb14656515a8d984a7fa6a3e30 (diff)
downloadandroid_packages_apps_Snap-3b18d29557c3727d33688f83a32723363b97a4e3.zip
android_packages_apps_Snap-3b18d29557c3727d33688f83a32723363b97a4e3.tar.gz
android_packages_apps_Snap-3b18d29557c3727d33688f83a32723363b97a4e3.tar.bz2
SnapdragonCamera: Handle startPreview exception in camera.
If any exception occurs in start preview then camera app should handle this exception and should display error pop-up and exit gracefully. CRs-Fixed: 919778 Change-Id: I80b60224d5d47a96dad78c40f8a23e3e9be45e65
Diffstat (limited to 'src_pd/com/android/camera')
-rw-r--r--src_pd/com/android/camera/util/UsageStatistics.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src_pd/com/android/camera/util/UsageStatistics.java b/src_pd/com/android/camera/util/UsageStatistics.java
index 98dc89c..b39dcf1 100644
--- a/src_pd/com/android/camera/util/UsageStatistics.java
+++ b/src_pd/com/android/camera/util/UsageStatistics.java
@@ -31,6 +31,7 @@ public class UsageStatistics {
public static final String ACTION_FOREGROUNDED = "Foregrounded";
public static final String ACTION_OPEN_FAIL = "OpenFailure";
+ public static final String ACTION_START_PREVIEW_FAIL = "StartPreviewFailure";
public static final String ACTION_SCREEN_CHANGED = "ScreenChanged";
public static final String ACTION_FILMSTRIP = "Filmstrip";
public static final String ACTION_TOUCH_FOCUS= "TouchFocus";