show 'days' in preferences

This commit is contained in:
Ronald Schaten 2011-06-08 14:57:02 +02:00
parent 98b40a5d19
commit 41787cbd47

View File

@ -91,7 +91,7 @@ public class WaldemarPreferences extends PreferenceActivity {
});
pref_duration.setOnPreferenceChangeListener(new Preference.OnPreferenceChangeListener() {
public boolean onPreferenceChange(Preference preference, Object newValue) {
pref_duration.setSummary((CharSequence)newValue);
pref_duration.setSummary((CharSequence)newValue+" "+getApplicationContext().getString(R.string.days));
return true;
}
});