summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/data
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/gallery3d/data')
-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";