mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-22 20:48:00 +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
1 changed files with 4 additions and 0 deletions
|
@ -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…
Reference in a new issue