commit | f8cdea4b9d54472f76e5b43aa364a69ebe94c13e | [log] [tgz] |
---|---|---|
author | Julia Reynolds <juliacr@google.com> | Fri Oct 08 08:45:19 2021 -0400 |
committer | Julia Reynolds <juliacr@google.com> | Fri Oct 08 17:05:45 2021 +0000 |
tree | a4fe7ef339f6b46fb531de72f4f08fa15f4071e0 | |
parent | 1ab7ad3e40154131e373b0d13424458b029f8b53 [diff] |
Add NEW_TASK flag for intents that leave Settings Test: manual Fixes: 202101382 Change-Id: Ie0cc7c10b19b49ad33227f3fdaad397e03e33858
diff --git a/src/com/android/settings/notification/app/NotificationSettings.java b/src/com/android/settings/notification/app/NotificationSettings.java index 99f067d..426625d 100644 --- a/src/com/android/settings/notification/app/NotificationSettings.java +++ b/src/com/android/settings/notification/app/NotificationSettings.java
@@ -334,10 +334,10 @@ } 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()); }