From 23ce0a97a6797ab4d89ec472ebc0dbc5b9c65cad Mon Sep 17 00:00:00 2001 From: Winson Chung Date: Wed, 14 Jun 2023 23:29:12 +0000 Subject: [PATCH] Restore removed block to create dependencies Bug: 285036830 Change-Id: I3d9beb09a98028c7711d1a30216f9a6db2f323b3 Test: Presubmit --- .../android/wm/shell/dagger/WMShellModule.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/libs/WindowManager/Shell/src/com/android/wm/shell/dagger/WMShellModule.java b/libs/WindowManager/Shell/src/com/android/wm/shell/dagger/WMShellModule.java index acbdbf9d67696..cff317259f1e7 100644 --- a/libs/WindowManager/Shell/src/com/android/wm/shell/dagger/WMShellModule.java +++ b/libs/WindowManager/Shell/src/com/android/wm/shell/dagger/WMShellModule.java @@ -710,4 +710,19 @@ public abstract class WMShellModule { static DesktopModeTaskRepository provideDesktopModeTaskRepository() { return new DesktopModeTaskRepository(); } + + // + // Misc + // + + // TODO: Temporarily move dependencies to this instead of ShellInit since that is needed to add + // the callback. We will be moving to a different explicit startup mechanism in a follow- up CL. + @WMSingleton + @ShellCreateTriggerOverride + @Provides + static Object provideIndependentShellComponentsToCreate( + DefaultMixedHandler defaultMixedHandler, + Optional desktopModeController) { + return new Object(); + } }