Restore accidental deletion of a return statement

To avoid setClientVisible() of wallpaper window from being called
too early before transition is finished.

Bug: 260059642
Test: WallpaperControllerTests
Change-Id: Ibc94ffb64897e39424ef1c8d85ad5f4a6f4960ad
This commit is contained in:
Riddle Hsu
2023-01-29 11:46:38 +00:00
parent 6530594ca4
commit 2d473d5394

View File

@@ -99,7 +99,6 @@ class WallpaperWindowToken extends WindowToken {
}
}
/** Returns {@code true} if visibility is changed. */
void updateWallpaperWindows(boolean visible) {
boolean changed = false;
if (mVisibleRequested != visible) {
@@ -117,6 +116,10 @@ class WallpaperWindowToken extends WindowToken {
linkFixedRotationTransform(wallpaperTarget.mToken);
}
}
// If wallpaper is in transition, setVisible() will be called from commitVisibility()
// when finishing transition. Otherwise commitVisibility() is already called from above
// setVisibility().
return;
}
final WindowState wallpaperTarget =