make sure to set the progress bar to Max when the video is complete

This commit is contained in:
tibbi 2016-06-12 22:05:30 +02:00
parent 6e3ea58bc9
commit ff40ea8a92

View file

@ -278,6 +278,10 @@ public class VideoFragment extends ViewPagerFragment
@Override
public void onCompletion(MediaPlayer mp) {
seekBar.setProgress(seekBar.getMax());
final int duration = mediaPlayer.getDuration() / 1000;
currTimeView.setText(getTimeString(duration));
pauseVideo();
}