Disable seek bar when media duration could not be queried (for still pictures, for example)
This commit is contained in:
parent
b05005d568
commit
ce47bec59e
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user