Merge pull request #8244 from seanzzy/issue-8058

Fix crash when open NewPipe from notification bar
This commit is contained in:
litetex 2022-04-18 16:06:48 +02:00 committed by GitHub
commit 53bf3420e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -97,7 +97,10 @@ public final class PlayQueueActivity extends AppCompatActivity
getMenuInflater().inflate(R.menu.menu_play_queue, m); getMenuInflater().inflate(R.menu.menu_play_queue, m);
getMenuInflater().inflate(R.menu.menu_play_queue_bg, m); getMenuInflater().inflate(R.menu.menu_play_queue_bg, m);
onMaybeMuteChanged(); onMaybeMuteChanged();
// to avoid null reference
if (player != null) {
onPlaybackParameterChanged(player.getPlaybackParameters()); onPlaybackParameterChanged(player.getPlaybackParameters());
}
return true; return true;
} }