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

Commit 729d0609 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Fix the wallpaper not hiding immediately" into main am: 55b1b0db

parents 675467c8 55b1b0db
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
@@ -1385,7 +1385,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();