Fix seekbar attribute grabbing *also remove from attrs as we have always used android: for max
Signed-off-by: xyyx <xyyx@mail.ru>
This commit is contained in:
@@ -18,7 +18,6 @@
|
||||
<declare-styleable name="CustomSeekBarPreference">
|
||||
<attr name="interval" format="integer" />
|
||||
<attr name="min" format="integer" />
|
||||
<attr name="max" format="integer" />
|
||||
<attr name="units" format="string|reference" />
|
||||
</declare-styleable>
|
||||
</resources>
|
||||
|
||||
@@ -50,7 +50,7 @@ public class CustomSeekBarPreference extends Preference implements SeekBar.OnSee
|
||||
final TypedArray a = context.obtainStyledAttributes(
|
||||
attrs, R.styleable.CustomSeekBarPreference);
|
||||
|
||||
mMax = attrs.getAttributeIntValue(SETTINGS_NS, "max", 100);
|
||||
mMax = attrs.getAttributeIntValue(ANDROIDNS, "max", 100);
|
||||
mMin = attrs.getAttributeIntValue(SETTINGS_NS, "min", 0);
|
||||
mDefaultValue = attrs.getAttributeIntValue(ANDROIDNS, "defaultValue", -1);
|
||||
mUnits = getAttributeStringValue(attrs, SETTINGS_NS, "units", "");
|
||||
|
||||
Reference in New Issue
Block a user