Loading services/core/java/com/android/server/wm/ActivityRecord.java +6 −0 Original line number Diff line number Diff line Loading @@ -3292,6 +3292,12 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A return false; } // Check if activity is top activity of its task fragment - this prevents any trampolines // followed by enterPictureInPictureMode() calls by an activity from below in its stack. if (getTaskFragment() == null || getTaskFragment().getTopNonFinishingActivity() != this) { return false; } // Check to see if PiP is supported for the display this container is on. if (mDisplayContent != null && !mDisplayContent.mDwpcHelper.isEnteringPipAllowed( getUid())) { Loading Loading
services/core/java/com/android/server/wm/ActivityRecord.java +6 −0 Original line number Diff line number Diff line Loading @@ -3292,6 +3292,12 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A return false; } // Check if activity is top activity of its task fragment - this prevents any trampolines // followed by enterPictureInPictureMode() calls by an activity from below in its stack. if (getTaskFragment() == null || getTaskFragment().getTopNonFinishingActivity() != this) { return false; } // Check to see if PiP is supported for the display this container is on. if (mDisplayContent != null && !mDisplayContent.mDwpcHelper.isEnteringPipAllowed( getUid())) { Loading