Fix wallpaper flicker when quick switching apps using taskbar swipe

When quickly switching apps using the taskbar swipe questure, the
letterbox ui appears to be shown a step too late resulting in a flicker
which breifly shows the wallpaper in the background.

As this transition is now handled by shell transitions, replace 'isAnimating(TRANSITION | PARENTS)' with 'isAnimationRunningSelfOrParent()' as the former no longer detects animations run by shell.

Fix: 277887641
Test: atest WmTests:WindowStateTests
Change-Id: Ia7d18ddd3297c15dc442ea6401ac6bc14d02fa41
This commit is contained in:
Eghosa Ewansiha-Vlachavas
2023-05-16 07:52:32 +00:00
parent a9d7a0f035
commit 87607b3f1b

View File

@@ -1932,7 +1932,7 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP
final ActivityRecord atoken = mActivityRecord;
if (atoken != null) {
return ((!isParentWindowHidden() && atoken.isVisible())
|| isAnimating(TRANSITION | PARENTS));
|| isAnimationRunningSelfOrParent());
}
final WallpaperWindowToken wtoken = mToken.asWallpaperToken();
if (wtoken != null) {