Created
July 17, 2020 09:59
-
-
Save kaszabimre/d1387333b8c7dbc20f6a5f2705db4384 to your computer and use it in GitHub Desktop.
Update NotificationServiceModule
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Module | |
@InstallIn(ApplicationComponent::class) | |
class NotificationServiceModule { | |
@Provides | |
@Singleton | |
fun provideNotificationManager(@ApplicationContext context: Context) = | |
context.getSystemService<NotificationManager>()!! | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment