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

Commit b6c4db10 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Lazily inject ShadePrimaryDisplayCommand" into main

parents 92f601e8 d0ed0070
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -195,9 +195,9 @@ object ShadeDisplayAwareModule {
    @Provides
    @Provides
    @IntoMap
    @IntoMap
    @ClassKey(ShadePrimaryDisplayCommand::class)
    @ClassKey(ShadePrimaryDisplayCommand::class)
    fun provideShadePrimaryDisplayCommand(impl: ShadePrimaryDisplayCommand): CoreStartable {
    fun provideShadePrimaryDisplayCommand(impl: Provider<ShadePrimaryDisplayCommand>): CoreStartable {
        return if (ShadeWindowGoesAround.isEnabled) {
        return if (ShadeWindowGoesAround.isEnabled) {
            impl
            impl.get()
        } else {
        } else {
            CoreStartable.NOP
            CoreStartable.NOP
        }
        }