From 0bcd8a95a96566d9e2c97c3305ee0dccf758ca7a Mon Sep 17 00:00:00 2001 From: Chih-Chung Chang Date: Tue, 18 Oct 2011 20:00:02 +0800 Subject: [PATCH] Fix 5352588: Accept view intent without URI. Change-Id: Ibfcf32a7d27c3ac2d3fa3695e430b3e29f3ecd20 --- .../deviceinfo/StorageVolumePreferenceCategory.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/com/android/settings/deviceinfo/StorageVolumePreferenceCategory.java b/src/com/android/settings/deviceinfo/StorageVolumePreferenceCategory.java index 4d2254818a3..39a08d8d2e4 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) {