summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/util
diff options
context:
space:
mode:
authorBobby Georgescu <georgescu@google.com>2012-09-26 14:22:57 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-09-26 14:47:01 -0700
commit833f775afc9515567dc5aaf0cafe20e006e77545 (patch)
tree5fcc084e3ea278e7d4a3475002e668584a22f664 /src/com/android/gallery3d/util
parent726cbd1af44cf7b0f795c4f0639b9b358be960c1 (diff)
downloadandroid_packages_apps_Gallery2-833f775afc9515567dc5aaf0cafe20e006e77545.tar.gz
android_packages_apps_Gallery2-833f775afc9515567dc5aaf0cafe20e006e77545.tar.bz2
android_packages_apps_Gallery2-833f775afc9515567dc5aaf0cafe20e006e77545.zip
Fix behavior of up button in Camera app
Bug: 7233448 - Up button now goes to gallery root when appropriate. Change-Id: Ib474335b2ac4139e7c5a213bda3efa481b24f224
Diffstat (limited to 'src/com/android/gallery3d/util')
-rw-r--r--src/com/android/gallery3d/util/GalleryUtils.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/com/android/gallery3d/util/GalleryUtils.java b/src/com/android/gallery3d/util/GalleryUtils.java
index f04a5ccff..6639c55f0 100644
--- a/src/com/android/gallery3d/util/GalleryUtils.java
+++ b/src/com/android/gallery3d/util/GalleryUtils.java
@@ -37,6 +37,7 @@ import android.util.Log;
import android.view.WindowManager;
import com.android.gallery3d.R;
+import com.android.gallery3d.app.Gallery;
import com.android.gallery3d.app.PackagesMonitor;
import com.android.gallery3d.common.ApiHelper;
import com.android.gallery3d.data.DataManager;
@@ -240,6 +241,11 @@ public class GalleryUtils {
context.startActivity(intent);
}
+ public static void startGalleryActivity(Context context) {
+ Intent intent = new Intent(context, Gallery.class);
+ context.startActivity(intent);
+ }
+
public static boolean isValidLocation(double latitude, double longitude) {
// TODO: change || to && after we fix the default location issue
return (latitude != MediaItem.INVALID_LATLNG || longitude != MediaItem.INVALID_LATLNG);