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
This commit is contained in:
tomnatan
2022-03-17 13:08:16 +00:00
parent f997596611
commit 747597a088

View File

@@ -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) {