mirror of
https://github.com/Ishan09811/pine.git
synced 2025-04-28 09:35:08 +00:00
Update SeekBarPreference.kt
This commit is contained in:
parent
9b04c2b352
commit
c7b47915dd
@ -25,8 +25,8 @@ class SeekBarPreference(context: Context, attrs: AttributeSet) : DialogPreferenc
|
|||||||
context.theme.obtainStyledAttributes(attrs, R.styleable.MaterialSeekBarPreference, 0, 0).apply {
|
context.theme.obtainStyledAttributes(attrs, R.styleable.MaterialSeekBarPreference, 0, 0).apply {
|
||||||
try {
|
try {
|
||||||
isPercentage = getBoolean(R.styleable.MaterialSeekBarPreference_isPercentage, false)
|
isPercentage = getBoolean(R.styleable.MaterialSeekBarPreference_isPercentage, false)
|
||||||
minValue = getString(R.styleable.MaterialSeekBarPreference_minValue, "0").toNumber()
|
minValue = getString(R.styleable.MaterialSeekBarPreference_minValue, "0").toInt()
|
||||||
maxValue = getString(R.styleable.MaterialSeekBarPreference_maxValue, "100").toNumber()
|
maxValue = getString(R.styleable.MaterialSeekBarPreference_maxValue, "100").toInt()
|
||||||
} finally {
|
} finally {
|
||||||
recycle()
|
recycle()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user