Commit 0d6164aa authored by Geoffrey Métais's avatar Geoffrey Métais

Atomic update for progress value

CID #1226287
parent 02359fe0
......@@ -99,9 +99,11 @@ public class VerticalSeekBar extends SeekBar {
break;
case MotionEvent.ACTION_MOVE:
if (mIsMovingThumb) {
final int max = getMax();
final int progress = max - (int) (max* event.getY() / getHeight());
setProgress(progress);
synchronized (this) {
final int max = getMax();
final int progress = max - (int) (max* event.getY() / getHeight());
setProgress(progress);
}
handled = true;
}
break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment