Skip to content

Commit

Permalink
Merge pull request #8244 from seanzzy/issue-8058
Browse files Browse the repository at this point in the history
Fix crash when open NewPipe from notification bar
  • Loading branch information
litetex authored Apr 18, 2022
2 parents 127a273 + 4904b48 commit 53bf342
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,10 @@ public boolean onCreateOptionsMenu(final Menu m) {
getMenuInflater().inflate(R.menu.menu_play_queue, m);
getMenuInflater().inflate(R.menu.menu_play_queue_bg, m);
onMaybeMuteChanged();
onPlaybackParameterChanged(player.getPlaybackParameters());
// to avoid null reference
if (player != null) {
onPlaybackParameterChanged(player.getPlaybackParameters());
}
return true;
}

Expand Down

0 comments on commit 53bf342

Please sign in to comment.