fix: only replace onProgressChanged if prog is different from 0

This commit is contained in:
dethstar 2015-12-14 15:01:19 -06:00
parent a24a1860ae
commit ccca71012a
1 changed files with 1 additions and 1 deletions

View File

@ -615,7 +615,7 @@ public abstract class MediaplayerActivity extends ActionBarActivity
if (controller != null) {
prog = controller.onSeekBarProgressChanged(seekBar, progress, fromUser,
txtvPosition);
if(timeLeft) {
if(timeLeft && prog!=0) {
int duration = controller.getDuration();
txtvLength.setText("-"+Converter
.getDurationStringLong(duration - (int) (prog * duration)));