Skip to content

Commit

Permalink
Fix player UI not hiding automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsvanvelzen committed Nov 12, 2024
1 parent 3e059e5 commit 6bb5055
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1108,7 +1108,10 @@ public void onPlaybackSpeedChange(float newSpeed) {
@Override
public void onPrepared() {
if (mPlaybackState == PlaybackState.BUFFERING) {
if (mFragment != null) mFragment.leanbackOverlayFragment.setShouldShowOverlay(false);
if (mFragment != null) {
mFragment.setFadingEnabled(true);
mFragment.leanbackOverlayFragment.setShouldShowOverlay(false);
}

mPlaybackState = PlaybackState.PLAYING;
mCurrentTranscodeStartTime = mCurrentStreamInfo.getPlayMethod() == PlayMethod.Transcode ? Instant.now().toEpochMilli() : 0;
Expand Down

0 comments on commit 6bb5055

Please sign in to comment.