New CustomSeekBar: allow to translate "Default" value string

Signed-off-by: xyyx <xyyx@mail.ru>
This commit is contained in:
ezio84
2017-09-18 09:53:28 +02:00
committed by hungphan2001
parent a4dba2147e
commit 243dffeb0e

View File

@@ -64,6 +64,10 @@ public class CustomSeekBarPreference extends Preference implements SeekBar.OnSee
if (id > 0) { if (id > 0) {
mUnits = context.getResources().getString(id); mUnits = context.getResources().getString(id);
} }
id = a.getResourceId(R.styleable.CustomSeekBarPreference_defaultText, 0);
if (id > 0) {
mDefaultText = context.getResources().getString(id);
}
try { try {
String newInterval = attrs.getAttributeValue(SETTINGS_NS, "interval"); String newInterval = attrs.getAttributeValue(SETTINGS_NS, "interval");