mirror of
https://github.com/oxen-io/session-android.git
synced 2025-02-17 14:08:26 +00:00
parent
9dd3e50ebd
commit
5d11e321a8
@ -137,8 +137,9 @@ public class NotificationsPreferenceFragment extends ListSummaryPreferenceFragme
|
|||||||
NotificationChannels.updateMessageRingtone(getContext(), uri);
|
NotificationChannels.updateMessageRingtone(getContext(), uri);
|
||||||
TextSecurePreferences.removeNotificationRingtone(getContext());
|
TextSecurePreferences.removeNotificationRingtone(getContext());
|
||||||
} else {
|
} else {
|
||||||
|
uri = uri == null ? Uri.EMPTY : uri;
|
||||||
NotificationChannels.updateMessageRingtone(getContext(), uri );
|
NotificationChannels.updateMessageRingtone(getContext(), uri );
|
||||||
TextSecurePreferences.setNotificationRingtone(getContext(), uri != null ? uri.toString() : Uri.EMPTY.toString());
|
TextSecurePreferences.setNotificationRingtone(getContext(), uri.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
initializeRingtoneSummary(findPreference(TextSecurePreferences.RINGTONE_PREF));
|
initializeRingtoneSummary(findPreference(TextSecurePreferences.RINGTONE_PREF));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user