Commit 107e0ebc by andrewlewis Committed by Oliver Woodman

Fix scrubbing in timeline with too many windows.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=152003529
parent 5ee122ca
...@@ -817,7 +817,7 @@ public class PlaybackControlView extends FrameLayout { ...@@ -817,7 +817,7 @@ public class PlaybackControlView extends FrameLayout {
public void onScrubStop(TimeBar timeBar, long position, boolean canceled) { public void onScrubStop(TimeBar timeBar, long position, boolean canceled) {
scrubbing = false; scrubbing = false;
if (!canceled && player != null) { if (!canceled && player != null) {
if (showMultiWindowTimeBar) { if (multiWindowTimeBar) {
Timeline timeline = player.getCurrentTimeline(); Timeline timeline = player.getCurrentTimeline();
int windowCount = timeline.getWindowCount(); int windowCount = timeline.getWindowCount();
long remainingMs = position; long remainingMs = position;
......
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 sign in to comment