Bug : i can't set value programmatically!!
mohamedebrahim96 opened this issue · comments
Mohamed Ebrahim commented
when i change the value the text is still not changed
Milos Marinkovic commented
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.
Yaakov Shahak commented
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);
}
}
Milos Marinkovic commented
@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!
Yaakov Shahak commented
Well, same here, but at least if someone will run into the same issue he can now solve it.