summaryrefslogtreecommitdiffstats
path: root/src_pd
diff options
context:
space:
mode:
authorSanjeev Garg <sangarg@codeaurora.org>2015-10-12 06:28:01 (GMT)
committerSteve Kondik <steve@cyngn.com>2016-08-03 22:44:40 (GMT)
commita2794eab22238885f5a3e2ed95e9fd2a1c42e810 (patch)
treee6a6c6cb3a997fecb7f3709186c5108169f97c3d /src_pd
parent7383a2dc7fa69383bfca0a1693e5bbe3c9601d51 (diff)
downloadandroid_packages_apps_Snap-a2794eab22238885f5a3e2ed95e9fd2a1c42e810.zip
android_packages_apps_Snap-a2794eab22238885f5a3e2ed95e9fd2a1c42e810.tar.gz
android_packages_apps_Snap-a2794eab22238885f5a3e2ed95e9fd2a1c42e810.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')
-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";