File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
vector-app/src/main/java/im/vector/app/core/di
vector/src/main/java/im/vector/app/features/mdm Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -111,6 +111,9 @@ import javax.inject.Singleton
111
111
@Binds
112
112
abstract fun bindEmojiSpanify (emojiCompatWrapper : EmojiCompatWrapper ): EmojiSpanify
113
113
114
+ @Binds
115
+ abstract fun bindMdmService (service : DefaultMdmService ): MdmService
116
+
114
117
@Binds
115
118
abstract fun bindFontScale (fontScale : FontScalePreferencesImpl ): FontScalePreferences
116
119
@@ -173,11 +176,6 @@ import javax.inject.Singleton
173
176
return Matrix (context, configuration)
174
177
}
175
178
176
- @Provides
177
- fun providesMdmService (context : Context ): MdmService {
178
- return DefaultMdmService (context)
179
- }
180
-
181
179
@Provides
182
180
fun providesCurrentSession (activeSessionHolder : ActiveSessionHolder ): Session {
183
181
// TODO handle session injection better
Original file line number Diff line number Diff line change @@ -25,7 +25,9 @@ import androidx.core.content.getSystemService
25
25
import dagger.hilt.android.qualifiers.ApplicationContext
26
26
import timber.log.Timber
27
27
import javax.inject.Inject
28
+ import javax.inject.Singleton
28
29
30
+ @Singleton
29
31
class DefaultMdmService @Inject constructor(
30
32
@ApplicationContext applicationContext : Context
31
33
) : MdmService {
You can’t perform that action at this time.
0 commit comments