Merge "Fix letterbox flickering rounded corners." into tm-dev am: f3811f7f22

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17292763

Change-Id: Icb6fba26ac927d43f98db4ecde29c262c3916f90
This commit is contained in:
Tom Natan
2022-03-21 20:50:34 +00:00
committed by Automerger Merge Worker

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