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

Commit 2d473d53 authored by Riddle Hsu's avatar Riddle Hsu
Browse files

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
parent 6530594c
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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 =