Skip to content

Commit

Permalink
Fixed thumbnail visible when the auto start is not enabled and the pr…
Browse files Browse the repository at this point in the history
…ogress SeekBar is dragged
  • Loading branch information
slavipetrov committed Aug 14, 2019
1 parent 82d4608 commit 64becab
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,8 @@ public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {
if (mediaControllerListener != null) {
mediaControllerListener.onSeekBarProgressChanged(newPosition);
}

videoMediaPlayer.hideThumbnail();
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,13 @@ public void onPauseResume() {
pause();
} else {
start();
if (fullscreenVideoView != null) {
fullscreenVideoView.hideThumbnail();
}
hideThumbnail();
}
}

public void hideThumbnail() {
if (fullscreenVideoView != null) {
fullscreenVideoView.hideThumbnail();
}
}

Expand Down

0 comments on commit 64becab

Please sign in to comment.