From ff40ea8a925fc4e3bbb747d2f0f201c65de38a7d Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 12 Jun 2016 22:05:30 +0200 Subject: [PATCH] make sure to set the progress bar to Max when the video is complete --- .../simplemobiletools/gallery/fragments/VideoFragment.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/com/simplemobiletools/gallery/fragments/VideoFragment.java b/app/src/main/java/com/simplemobiletools/gallery/fragments/VideoFragment.java index 9e740332a..38177b014 100644 --- a/app/src/main/java/com/simplemobiletools/gallery/fragments/VideoFragment.java +++ b/app/src/main/java/com/simplemobiletools/gallery/fragments/VideoFragment.java @@ -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(); }