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)) {
|
||||
videoControlsHider.stop();
|
||||
}
|
||||
progressIndicator.setVisibility(View.GONE); // Controller released; we will not receive buffering updates
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -386,6 +386,7 @@ public class AudioPlayerFragment extends Fragment implements
|
|||
super.onStop();
|
||||
controller.release();
|
||||
controller = null;
|
||||
progressIndicator.setVisibility(View.GONE); // Controller released; we will not receive buffering updates
|
||||
EventBus.getDefault().unregister(this);
|
||||
if (disposable != null) {
|
||||
disposable.dispose();
|
||||
|
|
Loading…
Reference in New Issue