summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/app
diff options
context:
space:
mode:
authorMichael W <baddaemon87@gmail.com>2016-05-23 13:17:28 +0200
committerBruno Martins <bgcngm@gmail.com>2018-11-20 09:39:48 +0000
commit1c39cb1431be427ecdf59f08c40d00ac53528238 (patch)
tree6205edd13e0280f8ff38217e9a4ea38d8e69de5f /src/com/android/gallery3d/app
parent1858489a876aa83607c6222d962fb2d34081554c (diff)
downloadandroid_packages_apps_Gallery2-1c39cb1431be427ecdf59f08c40d00ac53528238.tar.gz
android_packages_apps_Gallery2-1c39cb1431be427ecdf59f08c40d00ac53528238.tar.bz2
android_packages_apps_Gallery2-1c39cb1431be427ecdf59f08c40d00ac53528238.zip
Gallery2: 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: I120a1561aeceda2fc23721aa2ff4d68710fab76c
Diffstat (limited to 'src/com/android/gallery3d/app')
-rw-r--r--src/com/android/gallery3d/app/Gallery.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/gallery3d/app/Gallery.java b/src/com/android/gallery3d/app/Gallery.java
index fd9097d29..df3c0f957 100644
--- a/src/com/android/gallery3d/app/Gallery.java
+++ b/src/com/android/gallery3d/app/Gallery.java
@@ -26,7 +26,7 @@ public class Gallery extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
- Intent intent = IntentHelper.getGalleryIntent(Gallery.this);
+ Intent intent = IntentHelper.getGalleryIntent();
// Since this is being launched from a homescreen shortcut,
// it's already in a new task. Start Gallery activity and
// reset the task to its initial state if needed.