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

Commit b2de7084 authored by Massimo Carli's avatar Massimo Carli Committed by Android (Google) Code Review
Browse files

Merge "[1/n] Skip letterboxing for unrelated startingWindow" into main

parents d221d2cf 7ba9aebc
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -180,6 +180,12 @@ class AppCompatLetterboxPolicy {
    }

    void updateLetterboxSurfaceIfNeeded(@NonNull WindowState winHint) {
        // If a starting window is active, only apply updates to that specific window.
        if (Flags.appCompatRefactoringSkipStartingWindowLetterbox()
                && mActivityRecord.mStartingWindow != null
                && mActivityRecord.mStartingWindow != winHint) {
            return;
        }
        mLetterboxPolicyState.updateLetterboxSurfaceIfNeeded(winHint,
                mActivityRecord.getSyncTransaction(), mActivityRecord.getPendingTransaction());
    }