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

Commit 87607b3f authored by Eghosa Ewansiha-Vlachavas's avatar Eghosa Ewansiha-Vlachavas
Browse files

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
parent a9d7a0f0
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1932,7 +1932,7 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP
        final ActivityRecord atoken = mActivityRecord;
        final ActivityRecord atoken = mActivityRecord;
        if (atoken != null) {
        if (atoken != null) {
            return ((!isParentWindowHidden() && atoken.isVisible())
            return ((!isParentWindowHidden() && atoken.isVisible())
                    || isAnimating(TRANSITION | PARENTS));
                    || isAnimationRunningSelfOrParent());
        }
        }
        final WallpaperWindowToken wtoken = mToken.asWallpaperToken();
        final WallpaperWindowToken wtoken = mToken.asWallpaperToken();
        if (wtoken != null) {
        if (wtoken != null) {