Fix "Silent" summary for ringtone preference

fixes #3962
Closes #4441

//FREEBIE
pull/1/head
agrajaghh 9 years ago committed by Moxie Marlinspike
parent a65ade5366
commit 6a99c6c4ac

@ -917,6 +917,7 @@
<string name="preferences__pref_led_blink_custom_pattern_set">Custom LED blink pattern set!</string>
<string name="preferences__sound">Sound</string>
<string name="preferences__change_notification_sound">Change notification sound</string>
<string name="preferences__silent">Silent</string>
<string name="preferences__inthread_notifications">In-thread notifications</string>
<string name="preferences__play_inthread_notifications">Play notification sound when viewing an active conversation</string>
<string name="preferences__repeat_alerts">Repeat alerts</string>

@ -59,7 +59,7 @@ public class NotificationsPreferenceFragment extends ListSummaryPreferenceFragme
String value = (String) newValue;
if (TextUtils.isEmpty(value)) {
preference.setSummary(R.string.preferences__default);
preference.setSummary(R.string.preferences__silent);
} else {
Ringtone tone = RingtoneManager.getRingtone(getActivity(), Uri.parse(value));
if (tone != null) {

Loading…
Cancel
Save