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

Commit 4e6f3dd8 authored by Chris Göllner's avatar Chris Göllner
Browse files

Make HomeStatusBarInteractor a @PerDisplaySingleton

This doesn't really change any behavior at the moment, since the
dependencies of this interactor are not display aware yet.

The only difference for now is that there will be one instance of this
interactor per display.

Bug: 435653753
Test: Build & Run SystemUI
Flag: EXEMPT Dagger change that can't be flagged
Change-Id: I16eb13bf94a5c8ece1a71a58fcec28a161a14b5c
parent 16afc6ff
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -27,6 +27,7 @@ import com.android.systemui.statusbar.data.repository.StatusBarConfigurationCont
import com.android.systemui.statusbar.data.repository.StatusBarConfigurationControllerStore
import com.android.systemui.statusbar.domain.interactor.StatusBarIconRefreshInteractor
import com.android.systemui.statusbar.domain.interactor.StatusBarIconRefreshInteractorImpl
import com.android.systemui.statusbar.pipeline.shared.domain.interactor.HomeStatusBarInteractor
import com.android.systemui.statusbar.ui.SystemBarUtilsState
import com.android.systemui.statusbar.window.StatusBarWindowStateController
import dagger.Binds
@@ -59,6 +60,10 @@ interface StatusBarPerDisplayModule {
        impl: OngoingActivityChipsViewModel
    ): OngoingActivityChipsViewModel

    @Binds
    @DisplayAware
    fun homeStatusBarInteractor(interactor: HomeStatusBarInteractor): HomeStatusBarInteractor

    companion object {
        /**
         * Ideally StatusBarConfigurationControllerStore should be moved to [PerDisplaySingleton] in
+2 −2
Original line number Diff line number Diff line
@@ -16,7 +16,7 @@

package com.android.systemui.statusbar.pipeline.shared.domain.interactor

import com.android.systemui.dagger.SysUISingleton
import com.android.systemui.display.dagger.SystemUIDisplaySubcomponent.PerDisplaySingleton
import com.android.systemui.statusbar.disableflags.domain.interactor.DisableFlagsInteractor
import com.android.systemui.statusbar.pipeline.airplane.domain.interactor.AirplaneModeInteractor
import com.android.systemui.statusbar.pipeline.mobile.domain.interactor.CarrierConfigInteractor
@@ -32,7 +32,7 @@ import kotlinx.coroutines.flow.map
 * Interactor for the home screen status bar (aka
 * [com.android.systemui.statusbar.phone.fragment.CollapsedStatusBarFragment]).
 */
@SysUISingleton
@PerDisplaySingleton
class HomeStatusBarInteractor
@Inject
constructor(
+1 −1
Original line number Diff line number Diff line
@@ -248,7 +248,7 @@ constructor(
    override val statusBarBoundsViewModelFactory: StatusBarBoundsViewModel.Factory,
    override val appHandlesViewModelFactory: AppHandlesViewModel.Factory,
    tableLoggerFactory: TableLogBufferFactory,
    homeStatusBarInteractor: HomeStatusBarInteractor,
    @DisplayAware homeStatusBarInteractor: HomeStatusBarInteractor,
    homeStatusBarIconBlockListInteractor: HomeStatusBarIconBlockListInteractor,
    lightsOutInteractor: LightsOutInteractor,
    notificationsInteractor: ActiveNotificationsInteractor,