* commit 'e790a067cbed209bc0bcf1d5e47c91904f032869': Fix 5352588: Accept view intent without URI.
This commit is contained in:
@@ -416,8 +416,10 @@ public class StorageVolumePreferenceCategory extends PreferenceCategory implemen
|
|||||||
intent = new Intent(Intent.ACTION_GET_CONTENT);
|
intent = new Intent(Intent.ACTION_GET_CONTENT);
|
||||||
intent.setType("audio/mp3");
|
intent.setType("audio/mp3");
|
||||||
} else if (preference == mPreferences[DCIM]) {
|
} else if (preference == mPreferences[DCIM]) {
|
||||||
intent = new Intent(Intent.ACTION_GET_CONTENT);
|
intent = new Intent(Intent.ACTION_VIEW);
|
||||||
intent.setType("image/jpeg"); // TODO Create a Videos category, type = video/*
|
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]) {
|
} else if (preference == mPreferences[MISC]) {
|
||||||
Context context = getContext().getApplicationContext();
|
Context context = getContext().getApplicationContext();
|
||||||
if (mMeasurement.getMiscSize() > 0) {
|
if (mMeasurement.getMiscSize() > 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user