Commit f1de660b authored by Lucio Maciel's avatar Lucio Maciel
parent 149539f7
...@@ -231,8 +231,7 @@ class AppModule { ...@@ -231,8 +231,7 @@ class AppModule {
@Provides @Provides
@Singleton @Singleton
fun provideMessageRepository(context: Application, fun provideMessageRepository(@ForMessages preferences: SharedPreferences,
@ForMessages preferences: SharedPreferences,
moshi: Moshi, moshi: Moshi,
currentServerInteractor: GetCurrentServerInteractor): MessagesRepository { currentServerInteractor: GetCurrentServerInteractor): MessagesRepository {
return SharedPreferencesMessagesRepository(preferences, moshi, currentServerInteractor) return SharedPreferencesMessagesRepository(preferences, moshi, currentServerInteractor)
...@@ -278,7 +277,7 @@ class AppModule { ...@@ -278,7 +277,7 @@ class AppModule {
SharedPreferencesAccountsRepository(preferences, moshi) SharedPreferencesAccountsRepository(preferences, moshi)
@Provides @Provides
fun provideNotificationManager(context: Context): NotificationManager = context.systemService() fun provideNotificationManager(context: Application): NotificationManager = context.systemService()
@Provides @Provides
@Singleton @Singleton
...@@ -287,7 +286,7 @@ class AppModule { ...@@ -287,7 +286,7 @@ class AppModule {
@Provides @Provides
@Singleton @Singleton
fun providePushManager( fun providePushManager(
context: Context, context: Application,
groupedPushes: GroupedPush, groupedPushes: GroupedPush,
manager: NotificationManager, manager: NotificationManager,
moshi: Moshi, moshi: Moshi,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment