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

Commit 747597a0 authored by tomnatan's avatar tomnatan
Browse files

Fix letterbox flickering rounded corners.

This is done by also applying rounded corners for the main window that
isn't application-starting, if there is one.

Test: manually
Fix: 218514243
Change-Id: If9239a80c24b767361971f35303381238826b5e2
parent f9975966
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -145,6 +145,14 @@ final class LetterboxUiController {
            return;
        }
        updateRoundedCorners(w);
        // If there is another main window that is not an application-starting window, we should
        // update rounded corners for it as well, to avoid flickering rounded corners.
        final WindowState nonStartingAppW = mActivityRecord.findMainWindow(
                /* includeStartingApp= */ false);
        if (nonStartingAppW != null && nonStartingAppW != w) {
            updateRoundedCorners(nonStartingAppW);
        }

        updateWallpaperForLetterbox(w);
        if (shouldShowLetterboxUi(w)) {
            if (mLetterbox == null) {