From 6a99c6c4ac5aa7c0d1e0024bf2800b2ed7f50a10 Mon Sep 17 00:00:00 2001 From: agrajaghh Date: Sat, 7 Nov 2015 18:56:32 +0100 Subject: [PATCH] Fix "Silent" summary for ringtone preference fixes #3962 Closes #4441 //FREEBIE --- res/values/strings.xml | 1 + .../securesms/preferences/NotificationsPreferenceFragment.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/res/values/strings.xml b/res/values/strings.xml index 110e158f3b..e845da73ef 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -917,6 +917,7 @@ Custom LED blink pattern set! Sound Change notification sound + Silent In-thread notifications Play notification sound when viewing an active conversation Repeat alerts diff --git a/src/org/thoughtcrime/securesms/preferences/NotificationsPreferenceFragment.java b/src/org/thoughtcrime/securesms/preferences/NotificationsPreferenceFragment.java index da5c6e8cdc..47dcdf32a0 100644 --- a/src/org/thoughtcrime/securesms/preferences/NotificationsPreferenceFragment.java +++ b/src/org/thoughtcrime/securesms/preferences/NotificationsPreferenceFragment.java @@ -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) {