mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2025-07-23 04:12:58 +00:00
-Fixed potential NPE when updating thumbnail in background player.
This commit is contained in:
parent
7f7145e8de
commit
ca679f5932
@ -295,6 +295,7 @@ public final class BackgroundPlayer extends Service {
|
|||||||
//////////////////////////////////////////////////////////////////////////*/
|
//////////////////////////////////////////////////////////////////////////*/
|
||||||
|
|
||||||
private void updateNotificationThumbnail() {
|
private void updateNotificationThumbnail() {
|
||||||
|
if (basePlayerImpl == null) return;
|
||||||
if (notRemoteView != null) {
|
if (notRemoteView != null) {
|
||||||
notRemoteView.setImageViewBitmap(R.id.notificationCover,
|
notRemoteView.setImageViewBitmap(R.id.notificationCover,
|
||||||
basePlayerImpl.getThumbnail());
|
basePlayerImpl.getThumbnail());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user