novak/numpicker-demo — pull request #2 by eldarerathis (2012-03-02 20:39:26+00:00)
Title: Minor Bugfix

Hi,

I'm using your NumberPicker control in an app, and I noticed what seemed to be a kind of subtle bug. The EditText accepts input correctly, and filters out invalid values the way it should, but getCurrent() doesn't seem to return the proper value after you type directly into the EditText (although it *does* increment/decrement correctly if you enter text and then hit up or down).

I fixed it in my app by simply having getCurrent() parse the current value of the EditText instead of returning mCurrent. It works for me, so I figured I'd pass the change along to you if you want to pull it in. There may be a better way to do this by assigning to mCurrent in the filter or somesuch, but this seemed easiet to me.

Thanks for the NumberPicker!