Lazily initialize NotificationChannels.

This commit is contained in:
Greyson Parrelli
2022-11-16 19:08:50 -05:00
committed by Cody Henthorne
parent 3e8b5ca91d
commit 81c10a1eae
24 changed files with 251 additions and 227 deletions

View File

@@ -106,7 +106,7 @@ public class UserNotificationMigrationJob extends MigrationJob {
.addNextIntent(newConversationIntent)
.getPendingIntent(0, 0);
Notification notification = new NotificationCompat.Builder(context, NotificationChannels.getMessagesChannel(context))
Notification notification = new NotificationCompat.Builder(context, NotificationChannels.getInstance().getMessagesChannel())
.setSmallIcon(R.drawable.ic_notification)
.setContentText(message)
.setContentIntent(pendingIntent)