Merge "Add NEW_TASK flag for intents that leave Settings" into sc-v2-dev am: 5a7966884b
am: e99fe9b60c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16018030 Change-Id: I740ef2294a340ad01366fd99df986f34563e28da
This commit is contained in:
@@ -334,10 +334,10 @@ abstract public class NotificationSettings extends DashboardFragment {
|
|||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
// TODO(78660939): This should actually start a new task
|
|
||||||
mAppRow.settingsIntent = intent
|
mAppRow.settingsIntent = intent
|
||||||
.setPackage(null)
|
.setPackage(null)
|
||||||
.setClassName(activityInfo.packageName, activityInfo.name);
|
.setClassName(activityInfo.packageName, activityInfo.name)
|
||||||
|
.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||||
if (mChannel != null) {
|
if (mChannel != null) {
|
||||||
mAppRow.settingsIntent.putExtra(Notification.EXTRA_CHANNEL_ID, mChannel.getId());
|
mAppRow.settingsIntent.putExtra(Notification.EXTRA_CHANNEL_ID, mChannel.getId());
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user