summaryrefslogtreecommitdiffstats
path: root/src_pd
diff options
context:
space:
mode:
authorMichael W <baddaemon87@gmail.com>2016-05-23 13:17:28 +0200
committerGerrit Code Review <gerrit@cyanogenmod.org>2016-05-23 04:26:31 -0700
commitd5e574a606fbccec88c32e43c4e0d216b597d1c1 (patch)
tree8a620ba4c0cda3eb6ffc49b67f09f0a2268c7820 /src_pd
parentf2d026d1b923e05c5d407f36fd23f75301635764 (diff)
downloadandroid_packages_apps_Gallery2-d5e574a606fbccec88c32e43c4e0d216b597d1c1.tar.gz
android_packages_apps_Gallery2-d5e574a606fbccec88c32e43c4e0d216b597d1c1.tar.bz2
android_packages_apps_Gallery2-d5e574a606fbccec88c32e43c4e0d216b597d1c1.zip
Gallery: Try to open existing camera
Do not just open Camera2, just open any existing cam Also get rid of context parameter as it's unused (Reference: BugReports 13-20160506-12 Line #5) Change-Id: I18514ee30411a639230840fc2f152b8331bbca3d
Diffstat (limited to 'src_pd')
-rw-r--r--src_pd/com/android/gallery3d/util/IntentHelper.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/src_pd/com/android/gallery3d/util/IntentHelper.java b/src_pd/com/android/gallery3d/util/IntentHelper.java
index 8aebfc1fd..d0fb59ae8 100644
--- a/src_pd/com/android/gallery3d/util/IntentHelper.java
+++ b/src_pd/com/android/gallery3d/util/IntentHelper.java
@@ -15,17 +15,16 @@
*/
package com.android.gallery3d.util;
-import android.content.Context;
import android.content.Intent;
+import android.provider.MediaStore;
public class IntentHelper {
- public static Intent getCameraIntent(Context context) {
- return new Intent(Intent.ACTION_MAIN)
- .setClassName("com.android.camera2", "com.android.camera.CameraLauncher");
+ public static Intent getCameraIntent() {
+ return new Intent(MediaStore.INTENT_ACTION_STILL_IMAGE_CAMERA);
}
- public static Intent getGalleryIntent(Context context) {
+ public static Intent getGalleryIntent() {
return new Intent(Intent.ACTION_MAIN)
.setClassName("com.android.gallery3d", "com.android.gallery3d.app.GalleryActivity");
}