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
This commit is contained in:
Marzia Favaro
2023-08-09 11:01:47 +00:00
parent 88c874299e
commit 5cd5b5f2ba

View File

@@ -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().