summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d
diff options
context:
space:
mode:
authorOwen Lin <owenlin@google.com>2012-08-01 01:28:08 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-08-01 01:28:09 -0700
commit4febde56c93bcc8662a56f2334718f1d1b1f6fff (patch)
tree0d99b0df3a67a9a946fea59654397d9adf0cea78 /src/com/android/gallery3d
parentdb9e5096ccff45b72b546b2c2ed53704bdf79b59 (diff)
parentb200e27b998df8856bc060a9f418e662864458b2 (diff)
downloadandroid_packages_apps_Gallery2-4febde56c93bcc8662a56f2334718f1d1b1f6fff.tar.gz
android_packages_apps_Gallery2-4febde56c93bcc8662a56f2334718f1d1b1f6fff.tar.bz2
android_packages_apps_Gallery2-4febde56c93bcc8662a56f2334718f1d1b1f6fff.zip
Merge "Remove /mtp from TOP_SET_PATH before HC." into gb-ub-photos-arches
Diffstat (limited to 'src/com/android/gallery3d')
-rw-r--r--src/com/android/gallery3d/data/DataManager.java24
1 files changed, 14 insertions, 10 deletions
diff --git a/src/com/android/gallery3d/data/DataManager.java b/src/com/android/gallery3d/data/DataManager.java
index 9485b0274..386f6c3fc 100644
--- a/src/com/android/gallery3d/data/DataManager.java
+++ b/src/com/android/gallery3d/data/DataManager.java
@@ -68,18 +68,22 @@ public class DataManager {
private static final String TAG = "DataManager";
// This is the path for the media set seen by the user at top level.
- private static final String TOP_SET_PATH =
- "/combo/{/mtp,/local/all,/picasa/all}";
- private static final String TOP_IMAGE_SET_PATH =
- "/combo/{/mtp,/local/image,/picasa/image}";
+ private static final String TOP_SET_PATH = ApiHelper.HAS_MTP
+ ? "/combo/{/mtp,/local/all,/picasa/all}"
+ : "/combo/{/local/all,/picasa/all}";
+
+ private static final String TOP_IMAGE_SET_PATH = ApiHelper.HAS_MTP
+ ? "/combo/{/mtp,/local/image,/picasa/image}"
+ : "/combo/{/local/image,/picasa/image}";
+
private static final String TOP_VIDEO_SET_PATH =
"/combo/{/local/video,/picasa/video}";
- private static final String TOP_LOCAL_SET_PATH =
- "/local/all";
- private static final String TOP_LOCAL_IMAGE_SET_PATH =
- "/local/image";
- private static final String TOP_LOCAL_VIDEO_SET_PATH =
- "/local/video";
+
+ private static final String TOP_LOCAL_SET_PATH = "/local/all";
+
+ private static final String TOP_LOCAL_IMAGE_SET_PATH = "/local/image";
+
+ private static final String TOP_LOCAL_VIDEO_SET_PATH = "/local/video";
private static final String ACTION_DELETE_PICTURE =
"com.android.gallery3d.action.DELETE_PICTURE";