summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/deviceinfo
diff options
context:
space:
mode:
authorChih-Chung Chang <chihchung@google.com>2011-10-18 20:00:02 +0800
committerChih-Chung Chang <chihchung@google.com>2011-10-19 11:07:19 +0800
commit0bcd8a95a96566d9e2c97c3305ee0dccf758ca7a (patch)
tree6914f0284fbc4c60c5dc6ab4ca9d352dc90aae6e /src/com/android/settings/deviceinfo
parent644fa4243b4c288c85845b3f86aab25135635729 (diff)
downloadpackages_apps_settings-0bcd8a95a96566d9e2c97c3305ee0dccf758ca7a.zip
packages_apps_settings-0bcd8a95a96566d9e2c97c3305ee0dccf758ca7a.tar.gz
packages_apps_settings-0bcd8a95a96566d9e2c97c3305ee0dccf758ca7a.tar.bz2
Fix 5352588: Accept view intent without URI.
Change-Id: Ibfcf32a7d27c3ac2d3fa3695e430b3e29f3ecd20
Diffstat (limited to 'src/com/android/settings/deviceinfo')
-rw-r--r--src/com/android/settings/deviceinfo/StorageVolumePreferenceCategory.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/com/android/settings/deviceinfo/StorageVolumePreferenceCategory.java b/src/com/android/settings/deviceinfo/StorageVolumePreferenceCategory.java
index 4d22548..39a08d8 100644
--- a/src/com/android/settings/deviceinfo/StorageVolumePreferenceCategory.java
+++ b/src/com/android/settings/deviceinfo/StorageVolumePreferenceCategory.java
@@ -416,8 +416,10 @@ public class StorageVolumePreferenceCategory extends PreferenceCategory implemen
intent = new Intent(Intent.ACTION_GET_CONTENT);
intent.setType("audio/mp3");
} else if (preference == mPreferences[DCIM]) {
- intent = new Intent(Intent.ACTION_GET_CONTENT);
- intent.setType("image/jpeg"); // TODO Create a Videos category, type = video/*
+ intent = new Intent(Intent.ACTION_VIEW);
+ intent.putExtra(Intent.EXTRA_LOCAL_ONLY, true);
+ // TODO Create a Videos category, type = vnd.android.cursor.dir/video
+ intent.setType("vnd.android.cursor.dir/image");
} else if (preference == mPreferences[MISC]) {
Context context = getContext().getApplicationContext();
if (mMeasurement.getMiscSize() > 0) {