OSDN Git Service

Workaround task-resolution bug in AM
authorWinson Chung <winsonc@google.com>
Tue, 1 May 2018 17:22:08 +0000 (10:22 -0700)
committerWinson Chung <winsonc@google.com>
Tue, 1 May 2018 17:23:59 +0000 (10:23 -0700)
- 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

src/com/android/settings/notification/NotificationSettingsBase.java

index faf6fb3..8bf50a6 100644 (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());
             }