diff options
| author | 2024-08-15 21:28:45 +0000 | |
|---|---|---|
| committer | 2024-08-15 21:28:45 +0000 | |
| commit | 014fc31e768d5c4bc9bc21458ae60f1739bd744d (patch) | |
| tree | 16ac7fbb96c3a61f33fbf90f9144620076d560c6 | |
| parent | 9d9a64820f42f64d892f1e39e1ef892dbf714d23 (diff) | |
| parent | d8282f6c09364d1923879237e5abc8938f133f1a (diff) | |
Merge "Revert "Check if activity entering PiP is a top activity"" into main
| -rw-r--r-- | services/core/java/com/android/server/wm/ActivityRecord.java | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/services/core/java/com/android/server/wm/ActivityRecord.java b/services/core/java/com/android/server/wm/ActivityRecord.java index d169b1eafd4c..3ac91b3068b8 100644 --- a/services/core/java/com/android/server/wm/ActivityRecord.java +++ b/services/core/java/com/android/server/wm/ActivityRecord.java @@ -3292,12 +3292,6 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A return false; } - // Check if this activity is the top activity of its task - this prevents any trampolines - // followed by enterPictureInPictureMode() calls by an activity from below in its stack. - if (getTask().getTopMostActivity() != this) { - return false; - } - // Check to see if PiP is supported for the display this container is on. if (mDisplayContent != null && !mDisplayContent.mDwpcHelper.isEnteringPipAllowed( getUid())) { |