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

Commit b5a3ffb6 authored by Jorge Gil's avatar Jorge Gil
Browse files

Do not clear other flags adding FLAG_IS_DESKTOP_WALLPAPER_ACTIVITY

Otherwise flags like FLAG_MOVED_TO_TOP or FLAG_SHOW_WALLPAPER will be cleared when read by TransitionsObservers, which could lead to focus or other issues down the line.

Flag: EXEMPT bugfix
Bug: 380868195
Bug: 416173119
Test: check FLAG_MOVED_TO_TOP is still present when read by observers
Change-Id: Ief5d52e677c7d04ca35bee0be0bd08b0da2af52d
parent e6661d7f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -775,7 +775,7 @@ public class Transitions implements RemoteCallable<Transitions>,
        for (TransitionInfo.Change change : info.getChanges()) {
            if (change.getTaskInfo() != null
                    && DesktopWallpaperActivity.isWallpaperTask(change.getTaskInfo())) {
                change.setFlags(FLAG_IS_DESKTOP_WALLPAPER_ACTIVITY);
                change.setFlags(change.getFlags() | FLAG_IS_DESKTOP_WALLPAPER_ACTIVITY);
            }
        }