commit | 90aa72160fe67ceaea9ca1aa05aff614f6a9ae4d | [log] [tgz] |
---|---|---|
author | Anushek Prasal <anushekprasal@gmail.com> | Fri Jun 28 01:37:44 2019 +0530 |
committer | rohan <purohit.rohan@gmail.com> | Thu Oct 10 23:12:49 2019 +0530 |
tree | bb6c15267c8d5e9b15fdd2686b39c59feccc40d7 | |
parent | fd20a7d71258427c95e396833c6c4c8d436a57c7 [diff] |
Add missing methods in CustomSeekBarPreference Change-Id: I79c40283c0e10ef12297b46dfbd1ccf00fdd7eb3
diff --git a/src/com/bliss/support/preferences/CustomSeekBarPreference.java b/src/com/bliss/support/preferences/CustomSeekBarPreference.java index b3bce7e..a2af6ef 100644 --- a/src/com/bliss/support/preferences/CustomSeekBarPreference.java +++ b/src/com/bliss/support/preferences/CustomSeekBarPreference.java
@@ -313,6 +313,16 @@ } } + public void setMax(int max) { + mMaxValue = max; + mSeekBar.setMax(mMaxValue - mMinValue); + } + + public void setMin(int min) { + mMinValue = min; + mSeekBar.setMax(mMaxValue - mMinValue); + } + public void setValue(int newValue) { mValue = getLimitedValue(newValue); if (mSeekBar != null) mSeekBar.setProgress(getSeekValue(mValue));