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

Commit a061bae4 authored by Caitlin Shkuratov's avatar Caitlin Shkuratov
Browse files

[CS] Move EmergencyGestureModule to top-level modules not CSModule.

While `CentralSurfacesModule` *looks* like it should include all the
classes that CentralSurfaces depends on, it turns out that's not
actually the case. As long as the top-level module has those classes,
everything compiles.

This helps keep `CentralSurfacesModule` focused on just @Providing
CentralSurfaces and nothing else.

Bug: 277764509
Test: SysUI, SysUIGoogle, and SysUIGo compile
Flag: EXEMPT refactor
Change-Id: Iba9850441761db3c0ed88edee2b5e50de533453b
parent 7c3e87f5
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -35,6 +35,7 @@ import com.android.systemui.dock.DockManager;
import com.android.systemui.dock.DockManagerImpl;
import com.android.systemui.doze.DozeHost;
import com.android.systemui.education.dagger.ContextualEducationModule;
import com.android.systemui.emergency.EmergencyGestureModule;
import com.android.systemui.inputdevice.tutorial.KeyboardTouchpadTutorialModule;
import com.android.systemui.keyboard.shortcut.ShortcutHelperModule;
import com.android.systemui.keyguard.ui.composable.blueprint.DefaultBlueprintModule;
@@ -123,6 +124,7 @@ import javax.inject.Named;
        CollapsedStatusBarFragmentStartableModule.class,
        ConnectingDisplayViewModel.StartableModule.class,
        DefaultBlueprintModule.class,
        EmergencyGestureModule.class,
        GestureModule.class,
        HeadsUpModule.class,
        KeyboardShortcutsModule.class,
+1 −2
Original line number Diff line number Diff line
@@ -17,7 +17,6 @@
package com.android.systemui.statusbar.dagger;

import com.android.systemui.dagger.SysUISingleton;
import com.android.systemui.emergency.EmergencyGestureModule;
import com.android.systemui.statusbar.notification.dagger.NotificationsModule;
import com.android.systemui.statusbar.notification.row.NotificationRowModule;
import com.android.systemui.statusbar.phone.CentralSurfaces;
@@ -32,7 +31,7 @@ import dagger.Module;
 */
@Module(includes = {CentralSurfacesDependenciesModule.class,
        StatusBarNotificationPresenterModule.class,
        NotificationsModule.class, NotificationRowModule.class, EmergencyGestureModule.class})
        NotificationsModule.class, NotificationRowModule.class})
public interface CentralSurfacesModule {
    /**
     * Provides our instance of CentralSurfaces which is considered optional.