Workaround task-resolution bug in AM

- Keep launching notification settings in the Settings task. This is not
  the expected behavior, but only a workaround until b/72420153 is
  fixed.

Bug: 72420153
Test: Enter PIP, go to app > notifications > additional settings, ensure
      that it doesn't start in the PIP task

Change-Id: I73e704a283285462d4884db21923818cfb6deead
This commit is contained in:
Winson Chung
2018-05-01 10:22:08 -07:00
parent 0929651a77
commit 7bfc62f562

View File

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