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