Merge "Add NEW_TASK flag for intents that leave Settings" into sc-v2-dev

This commit is contained in:
TreeHugger Robot
2021-10-11 15:38:16 +00:00
committed by Android (Google) Code Review

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());
}