Loading packages/SystemUI/src/com/android/systemui/topwindoweffects/dagger/TopLevelWindowEffectsModule.kt +20 −5 Original line number Diff line number Diff line Loading @@ -17,17 +17,32 @@ package com.android.systemui.topwindoweffects.dagger import com.android.systemui.CoreStartable import com.android.systemui.shared.Flags.enableLppAssistInvocationEffect import com.android.systemui.topwindoweffects.TopLevelWindowEffects import dagger.Binds import dagger.Module import dagger.Provides import dagger.multibindings.ClassKey import dagger.multibindings.IntoMap @Module interface TopLevelWindowEffectsModule { @Binds @Binds fun bindTopLevelWindowEffectsCoreStartable(impl: TopLevelWindowEffects): CoreStartable companion object { @Provides @IntoMap @ClassKey(TopLevelWindowEffects::class) fun bindTopLevelWindowEffectsCoreStartable(impl: TopLevelWindowEffects): CoreStartable fun provideTopLevelWindowEffectsCoreStartable(impl: TopLevelWindowEffects): CoreStartable { return if (enableLppAssistInvocationEffect()) { impl } else { CoreStartable { // empty, no-op } } } } } Loading
packages/SystemUI/src/com/android/systemui/topwindoweffects/dagger/TopLevelWindowEffectsModule.kt +20 −5 Original line number Diff line number Diff line Loading @@ -17,17 +17,32 @@ package com.android.systemui.topwindoweffects.dagger import com.android.systemui.CoreStartable import com.android.systemui.shared.Flags.enableLppAssistInvocationEffect import com.android.systemui.topwindoweffects.TopLevelWindowEffects import dagger.Binds import dagger.Module import dagger.Provides import dagger.multibindings.ClassKey import dagger.multibindings.IntoMap @Module interface TopLevelWindowEffectsModule { @Binds @Binds fun bindTopLevelWindowEffectsCoreStartable(impl: TopLevelWindowEffects): CoreStartable companion object { @Provides @IntoMap @ClassKey(TopLevelWindowEffects::class) fun bindTopLevelWindowEffectsCoreStartable(impl: TopLevelWindowEffects): CoreStartable fun provideTopLevelWindowEffectsCoreStartable(impl: TopLevelWindowEffects): CoreStartable { return if (enableLppAssistInvocationEffect()) { impl } else { CoreStartable { // empty, no-op } } } } }