Add NEW_TASK flag for intents that leave Settings
Test: manual Fixes: 202101382 Change-Id: Ie0cc7c10b19b49ad33227f3fdaad397e03e33858
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