From e883c04006694392aae3f8c23223158cd653306d Mon Sep 17 00:00:00 2001 From: Andrew Shu Date: Sun, 3 Oct 2021 15:58:05 -0700 Subject: [PATCH] Fix setting initial 0 position in PlayerControlView --- .../com/google/android/exoplayer2/ui/PlayerControlView.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/ui/src/main/java/com/google/android/exoplayer2/ui/PlayerControlView.java b/library/ui/src/main/java/com/google/android/exoplayer2/ui/PlayerControlView.java index 7035372b32..24dbde6a72 100644 --- a/library/ui/src/main/java/com/google/android/exoplayer2/ui/PlayerControlView.java +++ b/library/ui/src/main/java/com/google/android/exoplayer2/ui/PlayerControlView.java @@ -343,8 +343,8 @@ public class PlayerControlView extends FrameLayout { private long[] extraAdGroupTimesMs; private boolean[] extraPlayedAdGroups; private long currentWindowOffset; - private long currentPosition; - private long currentBufferedPosition; + private long currentPosition = C.POSITION_UNSET; + private long currentBufferedPosition = C.POSITION_UNSET; public PlayerControlView(Context context) { this(context, /* attrs= */ null);