mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
make sure to set the progress bar to Max when the video is complete
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user