summaryrefslogtreecommitdiffstats
path: root/src_pd
diff options
context:
space:
mode:
authorMangesh Ghiware <mghiware@google.com>2013-10-22 14:10:17 -0700
committerMangesh Ghiware <mghiware@google.com>2013-10-22 14:10:17 -0700
commitb6892ab9e603661f73d97b50adcecc5103ebcd6f (patch)
tree89adc12f9aa1b04c8dcba378272465656a74cec6 /src_pd
parent85f460b8ba236167bccf560358aefd560f7b58f0 (diff)
downloadandroid_packages_apps_Gallery2-b6892ab9e603661f73d97b50adcecc5103ebcd6f.zip
android_packages_apps_Gallery2-b6892ab9e603661f73d97b50adcecc5103ebcd6f.tar.gz
android_packages_apps_Gallery2-b6892ab9e603661f73d97b50adcecc5103ebcd6f.tar.bz2
Consider camera available only if intent resolves to an activity.
Fixes crash for restricted profiles without a camera. Bug: 11289596 Change-Id: I3545dbeae2e4c9094746b51b770daa93e3896bb6
Diffstat (limited to 'src_pd')
-rw-r--r--src_pd/com/android/gallery3d/util/IntentHelper.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src_pd/com/android/gallery3d/util/IntentHelper.java b/src_pd/com/android/gallery3d/util/IntentHelper.java
index 13f69eb..8aebfc1 100644
--- a/src_pd/com/android/gallery3d/util/IntentHelper.java
+++ b/src_pd/com/android/gallery3d/util/IntentHelper.java
@@ -22,7 +22,7 @@ public class IntentHelper {
public static Intent getCameraIntent(Context context) {
return new Intent(Intent.ACTION_MAIN)
- .setClassName("com.android.camera2", "com.android.camera.CameraActivity");
+ .setClassName("com.android.camera2", "com.android.camera.CameraLauncher");
}
public static Intent getGalleryIntent(Context context) {