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:
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user