Merge pull request #4463 from ByteHamster/buffering-indicator
Fix buffering indicator sometimes sticking
This commit is contained in:
commit
68e2f198c3
|
@ -102,6 +102,7 @@ public class VideoplayerActivity extends MediaplayerActivity {
|
||||||
if (!PictureInPictureUtil.isInPictureInPictureMode(this)) {
|
if (!PictureInPictureUtil.isInPictureInPictureMode(this)) {
|
||||||
videoControlsHider.stop();
|
videoControlsHider.stop();
|
||||||
}
|
}
|
||||||
|
progressIndicator.setVisibility(View.GONE); // Controller released; we will not receive buffering updates
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -386,6 +386,7 @@ public class AudioPlayerFragment extends Fragment implements
|
||||||
super.onStop();
|
super.onStop();
|
||||||
controller.release();
|
controller.release();
|
||||||
controller = null;
|
controller = null;
|
||||||
|
progressIndicator.setVisibility(View.GONE); // Controller released; we will not receive buffering updates
|
||||||
EventBus.getDefault().unregister(this);
|
EventBus.getDefault().unregister(this);
|
||||||
if (disposable != null) {
|
if (disposable != null) {
|
||||||
disposable.dispose();
|
disposable.dispose();
|
||||||
|
|
Loading…
Reference in New Issue