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

Commit a2fc53a0 authored by Massimo Carli's avatar Massimo Carli
Browse files

[2/n] Remove flag on startingWindow letterboxing check

The fix is small and it's restoring existing and well tested code
making the flag not necessary.

Flag: EXEMPT small bug fix
Bug: 432347028
Test: atest WmTests:AppCompatLetterboxPolicyTest

Change-Id: I895f54c32f197e413c0a0d91c0de8d0b74b1cbed
parent 3b098c62
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -181,9 +181,7 @@ 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) {
        if (mActivityRecord.mStartingWindow != null && mActivityRecord.mStartingWindow != winHint) {
            return;
        }
        mLetterboxPolicyState.updateLetterboxSurfaceIfNeeded(winHint,