Merge pull request #3964 from ByteHamster/buffer-local
Do not show buffering indicator when playing local file
This commit is contained in:
commit
b18d28e554
|
@ -265,7 +265,11 @@ public class AudioPlayerFragment extends Fragment implements
|
|||
|
||||
@Override
|
||||
public void onBufferUpdate(float progress) {
|
||||
sbPosition.setSecondaryProgress((int) (progress * sbPosition.getMax()));
|
||||
if (isStreaming()) {
|
||||
sbPosition.setSecondaryProgress((int) (progress * sbPosition.getMax()));
|
||||
} else {
|
||||
sbPosition.setSecondaryProgress(0);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -743,6 +743,10 @@ public class PlaybackController {
|
|||
}
|
||||
}
|
||||
|
||||
public boolean isStreaming() {
|
||||
return playbackService != null && playbackService.isStreaming();
|
||||
}
|
||||
|
||||
private void initServiceNotRunning() {
|
||||
if (getPlayButton() == null) {
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue