diff --git a/res/values-de/strings.xml b/res/values-de/strings.xml index 36971437c..c0f735642 100644 --- a/res/values-de/strings.xml +++ b/res/values-de/strings.xml @@ -324,7 +324,6 @@ http://k9mail.googlecode.com/. Senden Betreff in Benachrichtigungen verbergen - Verbergen des Betreffes in Benachrichtigungen Niemals Wenn der Bildschirm gesperrt ist Immer diff --git a/res/values/strings.xml b/res/values/strings.xml index a41a21b90..88a74e120 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -327,7 +327,6 @@ http://k9mail.googlecode.com/ Send Hide subject in notifications - When to hide the subject in the notification bar. Never When phone is locked Always diff --git a/res/xml/global_preferences.xml b/res/xml/global_preferences.xml index 7b30b20d8..9c634b378 100644 --- a/res/xml/global_preferences.xml +++ b/res/xml/global_preferences.xml @@ -351,11 +351,9 @@ + android:title="@string/global_settings_notification_hide_subject_title"/> diff --git a/src/com/fsck/k9/activity/setup/Prefs.java b/src/com/fsck/k9/activity/setup/Prefs.java index bf054aaf0..dbac3f1b3 100644 --- a/src/com/fsck/k9/activity/setup/Prefs.java +++ b/src/com/fsck/k9/activity/setup/Prefs.java @@ -217,8 +217,8 @@ public class Prefs extends K9PreferenceActivity { K9.confirmMarkAllAsRead() }); - mNotificationHideSubject = (ListPreference) findPreference(PREFERENCE_NOTIFICATION_HIDE_SUBJECT); - mNotificationHideSubject.setValue(K9.getNotificationHideSubject().toString()); + mNotificationHideSubject = setupListPreference(PREFERENCE_NOTIFICATION_HIDE_SUBJECT, + K9.getNotificationHideSubject().toString()); mMeasureAccounts = (CheckBoxPreference)findPreference(PREFERENCE_MEASURE_ACCOUNTS); mMeasureAccounts.setChecked(K9.measureAccounts());