New CustomSeekBar: allow to translate "Default" value string
Signed-off-by: xyyx <xyyx@mail.ru>
This commit is contained in:
@@ -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");
|
||||||
|
|||||||
Reference in New Issue
Block a user