mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Merge pull request #4175 from cdotchen/FixDefaultTimeBar
Fix timebar scrubber notify wrong start position
This commit is contained in:
commit
9adf9542e1
@ -408,8 +408,8 @@ public class DefaultTimeBar extends View implements TimeBar {
|
|||||||
switch (event.getAction()) {
|
switch (event.getAction()) {
|
||||||
case MotionEvent.ACTION_DOWN:
|
case MotionEvent.ACTION_DOWN:
|
||||||
if (isInSeekBar(x, y)) {
|
if (isInSeekBar(x, y)) {
|
||||||
startScrubbing();
|
|
||||||
positionScrubber(x);
|
positionScrubber(x);
|
||||||
|
startScrubbing();
|
||||||
scrubPosition = getScrubberPosition();
|
scrubPosition = getScrubberPosition();
|
||||||
update();
|
update();
|
||||||
invalidate();
|
invalidate();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user