Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

Bug : i can't set value programmatically!! #16

Open
mohamedebrahim96 opened this issue Jul 20, 2017 · 4 comments
Open

Bug : i can't set value programmatically!! #16

mohamedebrahim96 opened this issue Jul 20, 2017 · 4 comments

Comments

@mohamedebrahim96
Copy link

when i change the value the text is still not changed

@milosmns
Copy link
Owner

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.

@yshahak
Copy link

yshahak commented Jan 29, 2018

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);
        }
    }

@milosmns
Copy link
Owner

milosmns commented Feb 3, 2018

@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!

@yshahak
Copy link

yshahak commented Feb 4, 2018

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants