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

Commit 55b1b0db authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Fix the wallpaper not hiding immediately" into main

parents 48ea4bf2 6968aa8e
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
@@ -1337,7 +1337,16 @@ class Transition implements BLASTSyncEngine.TransactionReadyListener {
        // Commit wallpaper visibility after activity, because usually the wallpaper target token is
        // an activity, and wallpaper's visibility depends on activity's visibility.
        for (int i = mParticipants.size() - 1; i >= 0; --i) {
            final WallpaperWindowToken wt = mParticipants.valueAt(i).asWallpaperToken();
            final WindowContainer<?> wc = mParticipants.valueAt(i);
            WallpaperWindowToken wt = wc.asWallpaperToken();
            if (!Flags.ensureWallpaperInTransitions()) {
                if (wt == null) {
                    final WindowState windowState = wc.asWindowState();
                    if (windowState != null) {
                        wt = windowState.mToken.asWallpaperToken();
                    }
                }
            }
            if (wt == null) continue;
            final WindowState target = wt.mDisplayContent.mWallpaperController.getWallpaperTarget();
            final boolean isTargetInvisible = target == null || !target.mToken.isVisible();