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:
dwitherell
2016-10-28 00:43:48 -06:00
committed by hungphan2001
parent 88870041dc
commit 005717276e
2 changed files with 1 additions and 2 deletions

View File

@@ -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>

View File

@@ -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", "");