listener.onScrubMove(this, scrubPosition);
@Override public void onProgressChanged(SeekBar seekBar, int i, boolean b) { if (listener != null) { listener.onScrubMove(this, i); } }
/** * Incrementally scrubs the position by {@code positionChange}. * * @param positionChange The change in the scrubber position, in milliseconds. May be negative. * @return Returns whether the scrubber position changed. */ private boolean scrubIncrementally(long positionChange) { if (duration <= 0) { return false; } long scrubberPosition = getScrubberPosition(); scrubPosition = Util.constrainValue(scrubberPosition + positionChange, 0, duration); if (scrubPosition == scrubberPosition) { return false; } if (!scrubbing) { startScrubbing(); } for (OnScrubListener listener : listeners) { listener.onScrubMove(this, scrubPosition); } update(); return true; }