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

Commit 5cd5b5f2 authored by Marzia Favaro's avatar Marzia Favaro
Browse files

Call setVisibile immediately when wallpaper not in transition

This was causing issues when `updateWallpaperTokens` was called by `adjustWallpaperWindows`, in particular when locking and unlocking the device, as the visibilities were not committed and the home wallpaper was visible on the lockscreen

Fix: 293142437
Test: Manual: `for i in {1..50}; do adb shell wm dismiss-keyguard; sleep 0.5; adb shell input keyevent KEYCODE_POWER; sleep 1; adb shell input keyevent KEYCODE_POWER; done`
Change-Id: Ibe291f57da589f109427f99bb712064376ba5b73
parent 88c87429
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -170,7 +170,7 @@ class WallpaperWindowToken extends WindowToken {
                linkFixedRotationTransform(wallpaperTarget.mToken);
            }
        }
        if (mTransitionController.isShellTransitionsEnabled()) {
        if (mTransitionController.inTransition(this)) {
            // If wallpaper is in transition, setVisible() will be called from commitVisibility()
            // when finishing transition. Otherwise commitVisibility() is already called from above
            // setVisibility().