Merge "Make sure to go to the right Settings panel when tapping a notification"
This commit is contained in:
committed by
Android (Google) Code Review
commit
1c424f86c6
@@ -568,12 +568,9 @@ public class UsbDeviceManager {
|
|||||||
notification.sound = null;
|
notification.sound = null;
|
||||||
notification.vibrate = null;
|
notification.vibrate = null;
|
||||||
|
|
||||||
Intent intent = new Intent(
|
Intent intent = Intent.makeRestartActivityTask(
|
||||||
Settings.ACTION_APPLICATION_DEVELOPMENT_SETTINGS);
|
new ComponentName("com.android.settings",
|
||||||
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK |
|
"com.android.settings.UsbSettings"));
|
||||||
Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED);
|
|
||||||
intent.setComponent(new ComponentName("com.android.settings",
|
|
||||||
"com.android.settings.UsbSettings"));
|
|
||||||
PendingIntent pi = PendingIntent.getActivity(mContext, 0,
|
PendingIntent pi = PendingIntent.getActivity(mContext, 0,
|
||||||
intent, 0);
|
intent, 0);
|
||||||
notification.setLatestEventInfo(mContext, title, message, pi);
|
notification.setLatestEventInfo(mContext, title, message, pi);
|
||||||
@@ -604,12 +601,9 @@ public class UsbDeviceManager {
|
|||||||
notification.sound = null;
|
notification.sound = null;
|
||||||
notification.vibrate = null;
|
notification.vibrate = null;
|
||||||
|
|
||||||
Intent intent = new Intent(
|
Intent intent = Intent.makeRestartActivityTask(
|
||||||
Settings.ACTION_APPLICATION_DEVELOPMENT_SETTINGS);
|
new ComponentName("com.android.settings",
|
||||||
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK |
|
"com.android.settings.DevelopmentSettings"));
|
||||||
Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED);
|
|
||||||
intent.setComponent(new ComponentName("com.android.settings",
|
|
||||||
"com.android.settings.DevelopmentSettings"));
|
|
||||||
PendingIntent pi = PendingIntent.getActivity(mContext, 0,
|
PendingIntent pi = PendingIntent.getActivity(mContext, 0,
|
||||||
intent, 0);
|
intent, 0);
|
||||||
notification.setLatestEventInfo(mContext, title, message, pi);
|
notification.setLatestEventInfo(mContext, title, message, pi);
|
||||||
|
|||||||
Reference in New Issue
Block a user