parent
9b20aeaedd
commit
cf2422b1db
|
@ -209,6 +209,10 @@ public class ExternalPlayerFragment extends Fragment {
|
|||
}
|
||||
|
||||
private void onPositionObserverUpdate() {
|
||||
if (controller.getPosition() == PlaybackService.INVALID_TIME
|
||||
|| controller.getDuration() == PlaybackService.INVALID_TIME) {
|
||||
return;
|
||||
}
|
||||
mProgressBar.setProgress((int)
|
||||
((double) controller.getPosition() / controller.getDuration() * 100));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue