Suppress startActivity warning for PipMenuActivity

PipMenuActivity is essentially the start of a new task in stack.
See also com.android.systemui.pip.tv.PipManager

Bug: 137778464
Test: adb logcat | grep ActivityTaskManager
Change-Id: I701e247810c8857e40c9d42bc350eaecee34c63a
This commit is contained in:
Hongwei Wang
2019-07-18 11:15:48 -07:00
parent ba7fb6a5f6
commit 792f89ff26

View File

@@ -414,6 +414,7 @@ public class PipMenuActivityController {
if (pinnedStackInfo != null && pinnedStackInfo.taskIds != null &&
pinnedStackInfo.taskIds.length > 0) {
Intent intent = new Intent(mContext, PipMenuActivity.class);
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
intent.putExtra(EXTRA_CONTROLLER_MESSENGER, mMessenger);
intent.putExtra(EXTRA_ACTIONS, resolveMenuActions());
if (stackBounds != null) {