Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8f397ae3 authored by Riddle Hsu's avatar Riddle Hsu Committed by Android (Google) Code Review
Browse files

Merge "Only consider parent windowing mode if activity has no mode override" into main

parents 7dac0762 66d0eaff
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -8701,9 +8701,11 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A
        if (!mOptOutEdgeToEdge && (!mResolveConfigHint.mUseOverrideInsetsForConfig
                || getCompatDisplayInsets() != null
                || (isFloating(parentWindowingMode)
                        // Check the windowing mode of activity as well in case it is switching
                        // between PiP and fullscreen.
                        && isFloating(inOutConfig.windowConfiguration.getWindowingMode()))
                        // Check the requested windowing mode of activity as well in case it is
                        // switching between PiP and fullscreen.
                        && (inOutConfig.windowConfiguration.getWindowingMode()
                                == WINDOWING_MODE_UNDEFINED
                                || isFloating(inOutConfig.windowConfiguration.getWindowingMode())))
                || rotation == ROTATION_UNDEFINED)) {
            // If the insets configuration decoupled logic is not enabled for the app, or the app
            // already has a compat override, or the context doesn't contain enough info to