Merge "Add NEW_TASK flag for intents that leave Settings" into sc-v2-dev am: 5a7966884b

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16018030

Change-Id: I670e7a9cc69ef1805e5450a6054d4616624583d6
This commit is contained in:
TreeHugger Robot
2021-10-11 15:51:19 +00:00
committed by Automerger Merge Worker

View File

@@ -334,10 +334,10 @@ abstract public class NotificationSettings extends DashboardFragment {
}
continue;
}
// TODO(78660939): This should actually start a new task
mAppRow.settingsIntent = intent
.setPackage(null)
.setClassName(activityInfo.packageName, activityInfo.name);
.setClassName(activityInfo.packageName, activityInfo.name)
.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
if (mChannel != null) {
mAppRow.settingsIntent.putExtra(Notification.EXTRA_CHANNEL_ID, mChannel.getId());
}