|
|
@ -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 {
|
|
|
|
NotificationChannels.updateMessageRingtone(getContext(), uri);
|
|
|
|
uri = uri == null ? Uri.EMPTY : uri;
|
|
|
|
TextSecurePreferences.setNotificationRingtone(getContext(), uri != null ? uri.toString() : Uri.EMPTY.toString());
|
|
|
|
NotificationChannels.updateMessageRingtone(getContext(), uri );
|
|
|
|
|
|
|
|
TextSecurePreferences.setNotificationRingtone(getContext(), uri.toString());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
initializeRingtoneSummary(findPreference(TextSecurePreferences.RINGTONE_PREF));
|
|
|
|
initializeRingtoneSummary(findPreference(TextSecurePreferences.RINGTONE_PREF));
|
|
|
|