Use a public media content uri for viewing local media files
Bug: 11061566 Change-Id: I7e049f48d37a68a0a41b7a62383eea71f3938c44
This commit is contained in:
@@ -19,6 +19,7 @@ package com.android.settings.deviceinfo;
|
||||
import android.app.AlertDialog;
|
||||
import android.app.Dialog;
|
||||
import android.app.DialogFragment;
|
||||
import android.content.ActivityNotFoundException;
|
||||
import android.content.BroadcastReceiver;
|
||||
import android.content.Context;
|
||||
import android.content.DialogInterface;
|
||||
@@ -223,7 +224,11 @@ public class Memory extends SettingsPreferenceFragment {
|
||||
if (intent != null) {
|
||||
// Don't go across app boundary if monkey is running
|
||||
if (!Utils.isMonkeyRunning()) {
|
||||
startActivity(intent);
|
||||
try {
|
||||
startActivity(intent);
|
||||
} catch (ActivityNotFoundException anfe) {
|
||||
Log.w(TAG, "No activity found for intent " + intent);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user