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

Commit 2d490709 authored by Alina Zaidi's avatar Alina Zaidi
Browse files

Make MultiDisplayAutoHideControllerStore a CoreStartable

This became necessary after the revert: ag/30528268

Bug: 373309973
Test: EXEMPT minor fix
Flag: com.android.systemui.status_bar_connected_displays
Change-Id: I774c0761c2ab28123a6513ce4bab4f868e79fd62
parent 2751068a
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -207,5 +207,19 @@ interface StatusBarPhoneModule {
                singleDisplayLazy.get()
            }
        }

        @Provides
        @SysUISingleton
        @IntoMap
        @ClassKey(AutoHideControllerStore::class)
        fun storeAsCoreStartable(
            multiDisplayLazy: Lazy<MultiDisplayAutoHideControllerStore>
        ): CoreStartable {
            return if (StatusBarConnectedDisplays.isEnabled) {
                multiDisplayLazy.get()
            } else {
                CoreStartable.NOP
            }
        }
    }
}