Skip to content

Commit 98ac531

Browse files
authored
Merge pull request #6968 from Bnyro/master
fix: crash when switching to audio player
2 parents 1476c12 + bc9033d commit 98ac531

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/com/github/libretube/ui/fragments/PlayerFragment.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ class PlayerFragment : Fragment(), OnlinePlayerOptions {
259259
Player.EVENT_PLAYBACK_STATE_CHANGED,
260260
Player.EVENT_IS_PLAYING_CHANGED,
261261
Player.EVENT_PLAY_WHEN_READY_CHANGED
262-
)
262+
) && _binding != null
263263
) {
264264
updatePlayPauseButton()
265265
}

0 commit comments

Comments
 (0)