Merge pull request #4463 from ByteHamster/buffering-indicator

Fix buffering indicator sometimes sticking
This commit is contained in:
H. Lehmann 2020-09-29 13:30:41 +02:00 committed by GitHub
commit 68e2f198c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -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

View File

@ -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();