mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-22 09:49:30 +01:00
Fix incorrect notification sound when channel is set to silent.
Fixes #12317
This commit is contained in:
committed by
Alex Hart
parent
e80df64698
commit
748dbc2ba5
@@ -296,7 +296,8 @@ public class NotificationChannels {
|
||||
return null;
|
||||
}
|
||||
|
||||
return channel.getSound();
|
||||
Uri channelSound = channel.getSound();
|
||||
return channelSound != null ? channelSound : Uri.EMPTY;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -274,7 +274,7 @@ object NotificationFactory {
|
||||
recipient.messageRingtone ?: SignalStore.settings().messageNotificationSound
|
||||
}
|
||||
|
||||
if (uri.toString().isEmpty()) {
|
||||
if (uri == Uri.EMPTY || uri.toString().isEmpty()) {
|
||||
Log.d(TAG, "ringtone uri is empty")
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user