ShawnLin013 / NumberPicker

:slot_machine: The android library that provides a simple and customizable NumberPicker.
MIT License
1.09k stars 240 forks source link

Fix wrap wheel bug when setting min value #186

Closed dbarr33 closed 3 years ago

dbarr33 commented 3 years ago

If setMinValue is called after setWrapSelectorWheel is called then the value value passed into setWrapSelectorWheel will be overridden with the value returned from isWrappingAllowed()

The fix is to && the return value of isWrappingAllowed with mWrapSelectorWheelPreferred, that way the users preferences is accounted for.