mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-02-18 04:50:36 +01:00
make sure to set the progress bar to Max when the video is complete
This commit is contained in:
parent
6e3ea58bc9
commit
ff40ea8a92
@ -278,6 +278,10 @@ public class VideoFragment extends ViewPagerFragment
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onCompletion(MediaPlayer mp) {
|
public void onCompletion(MediaPlayer mp) {
|
||||||
|
seekBar.setProgress(seekBar.getMax());
|
||||||
|
final int duration = mediaPlayer.getDuration() / 1000;
|
||||||
|
currTimeView.setText(getTimeString(duration));
|
||||||
|
|
||||||
pauseVideo();
|
pauseVideo();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user