Fix scrubbing in timeline with too many windows.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=152003529
This commit is contained in:
andrewlewis 2017-04-03 06:35:56 -07:00 committed by Oliver Woodman
parent 5ee122cac8
commit 107e0ebc46

View file

@ -817,7 +817,7 @@ public class PlaybackControlView extends FrameLayout {
public void onScrubStop(TimeBar timeBar, long position, boolean canceled) {
scrubbing = false;
if (!canceled && player != null) {
if (showMultiWindowTimeBar) {
if (multiWindowTimeBar) {
Timeline timeline = player.getCurrentTimeline();
int windowCount = timeline.getWindowCount();
long remainingMs = position;