Disable seek bar when media duration could not be queried (for still pictures, for example)

This commit is contained in:
Xavi Artigas 2012-11-07 13:11:56 +01:00
parent b05005d568
commit ce47bec59e

View file

@ -229,6 +229,7 @@ public class Tutorial5 extends Activity implements SurfaceHolder.Callback, OnSee
sb.setMax(duration);
sb.setProgress(position);
updateTimeWidget();
sb.setEnabled(duration != 0);
}
});
this.position = position;