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

Commit f7c22d4d authored by Massimo Carli's avatar Massimo Carli
Browse files

[42/n] Integrate LetterboxCleanupAdapter

The LetterboxCleanupAdapter allows to remove all the letterbox surfaces
for a Task that is removed. Just using TransactionObserver was not
completely reliable on some cases (e.g. close from Recents).

Flag: com.android.window.flags.app_compat_refactoring
Fix: 416222124
Test: m

Change-Id: Ied6d4ebd1274a47232e22f68db2eac35e427bbae
parent eb1d6fd7
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -86,6 +86,7 @@ import com.android.wm.shell.common.split.SplitState;
import com.android.wm.shell.compatui.api.CompatUIHandler;
import com.android.wm.shell.compatui.letterbox.DelegateLetterboxTransitionObserver;
import com.android.wm.shell.compatui.letterbox.LetterboxCommandHandler;
import com.android.wm.shell.compatui.letterbox.lifecycle.LetterboxCleanupAdapter;
import com.android.wm.shell.crashhandling.ShellCrashHandler;
import com.android.wm.shell.dagger.back.ShellBackAnimationModule;
import com.android.wm.shell.dagger.pip.PipModule;
@@ -1798,6 +1799,7 @@ public abstract class WMShellModule {
            DragAndDropController dragAndDropController,
            @NonNull DelegateLetterboxTransitionObserver letterboxTransitionObserver,
            @NonNull LetterboxCommandHandler letterboxCommandHandler,
            @NonNull LetterboxCleanupAdapter letterboxCleanupAdapter,
            Optional<DesktopTasksTransitionObserver> desktopTasksTransitionObserverOptional,
            Optional<DesktopDisplayEventHandler> desktopDisplayEventHandler,
            Optional<DesktopModeKeyGestureHandler> desktopModeKeyGestureHandler,