mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-20 08:39:22 +01:00
Lazily initialize NotificationChannels.
This commit is contained in:
committed by
Cody Henthorne
parent
3e8b5ca91d
commit
81c10a1eae
@@ -53,7 +53,7 @@ public final class ConversationUtil {
|
||||
public static @NonNull String getChannelId(@NonNull Context context, @NonNull Recipient recipient) {
|
||||
Recipient resolved = recipient.resolve();
|
||||
|
||||
return resolved.getNotificationChannel() != null ? resolved.getNotificationChannel() : NotificationChannels.getMessagesChannel(context);
|
||||
return resolved.getNotificationChannel() != null ? resolved.getNotificationChannel() : NotificationChannels.getInstance().getMessagesChannel();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -288,7 +288,7 @@ public class TextSecurePreferences {
|
||||
|
||||
public static void onPostBackupRestore(@NonNull Context context) {
|
||||
if (NotificationChannels.supported()) {
|
||||
NotificationChannels.updateMessageVibrate(context, SignalStore.settings().isMessageVibrateEnabled());
|
||||
NotificationChannels.getInstance().updateMessageVibrate(SignalStore.settings().isMessageVibrateEnabled());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user