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

Commit 011c9431 authored by Nicolo' Mazzucato's avatar Nicolo' Mazzucato
Browse files

Provide NotificationStackModule also in aosp

NotificationStackModule was provided only in the NotificationsGoogleModule, but also in aosp we're using NotificationStackScrollLayout, so we should have this module there as well.

I realized of the issue while trying to turn on shade_window_goes_away flag: in aosp the NotificationStackRebindingHider was not being provided, making sysui crash with the flag on.

Bug: 362719719
Test: run some tests on aosp emulator sucessfully with this and the flag on
Flag: com.android.systemui.shade_window_goes_around
Change-Id: I06527b215a67de4f507ddbc48131b687c50d9df9
parent a708b619
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -74,6 +74,7 @@ import com.android.systemui.statusbar.NotificationShadeWindowController;
import com.android.systemui.statusbar.SysuiStatusBarStateController;
import com.android.systemui.statusbar.dagger.CentralSurfacesModule;
import com.android.systemui.statusbar.dagger.StartCentralSurfacesModule;
import com.android.systemui.statusbar.notification.dagger.NotificationStackModule;
import com.android.systemui.statusbar.notification.dagger.ReferenceNotificationsModule;
import com.android.systemui.statusbar.notification.headsup.HeadsUpModule;
import com.android.systemui.statusbar.phone.CentralSurfaces;
@@ -169,6 +170,7 @@ import javax.inject.Named;
        WallpaperModule.class,
        ShortcutHelperModule.class,
        ContextualEducationModule.class,
        NotificationStackModule.class,
})
public abstract class ReferenceSystemUIModule {

+2 −2
Original line number Diff line number Diff line
@@ -26,7 +26,7 @@ import dagger.Module
 * This is meant to be bound in SystemUI variants with [NotificationStackScrollLayoutController].
 */
@Module
interface NotificationStackGoogleModule {
interface NotificationStackModule {
    @Binds
    fun bindNotificationStackRebindingHider(
        impl: NotificationStackRebindingHiderImpl
@@ -35,7 +35,7 @@ interface NotificationStackGoogleModule {

/** This is meant to be used by all SystemUI variants, also those without NSSL. */
@Module
interface NotificationStackModule {
interface NotificationStackOptionalModule {
    @BindsOptionalOf
    fun bindOptionalOfNotificationStackRebindingHider(): NotificationStackRebindingHider
}
+1 −1
Original line number Diff line number Diff line
@@ -120,7 +120,7 @@ import javax.inject.Provider;
        NotificationMemoryModule.class,
        NotificationStatsLoggerModule.class,
        NotificationsLogModule.class,
        NotificationStackModule.class,
        NotificationStackOptionalModule.class,
})
public interface NotificationsModule {
    @Binds