Fix "Silent" summary for ringtone preference

fixes #3962
Closes #4441

//FREEBIE
fork-5.53.8
agrajaghh 2015-11-07 18:56:32 +01:00 zatwierdzone przez Moxie Marlinspike
rodzic a65ade5366
commit 6a99c6c4ac
2 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

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

Wyświetl plik

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