actual-number-picker icon indicating copy to clipboard operation
actual-number-picker copied to clipboard

Bug : i can't set value programmatically!!

Open mohamedebrahim96 opened this issue 8 years ago • 4 comments

when i change the value the text is still not changed

mohamedebrahim96 avatar Jul 20 '17 19:07 mohamedebrahim96

I'm on vacation until next week so I can take a look at this when I come back - you're also welcome to fork, fix and send a pull request, I'll gladly look at it.

milosmns avatar Jul 24 '17 11:07 milosmns

You should just update the method:

public void setValue(int newValue) {
        int oldValue = mValue;
        mDelta = 0;
        mValue = newValue;
        mLastX = Float.MAX_VALUE;
        normalizeValue();
        if (oldValue != mValue) {
            notifyListener(oldValue, mValue);
            mHandler.post(mInvalidator);
        }
    }

yshahak avatar Jan 29 '18 07:01 yshahak

@yshahak You're very welcome to fork and do a pull request, I'm fairly busy with other things I'm working on, but I'll take a look and merge to the repo asap. Thanks!

milosmns avatar Feb 03 '18 13:02 milosmns

Well, same here, but at least if someone will run into the same issue he can now solve it.

yshahak avatar Feb 04 '18 08:02 yshahak