-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() {
|
||||
if (basePlayerImpl == null) return;
|
||||
if (notRemoteView != null) {
|
||||
notRemoteView.setImageViewBitmap(R.id.notificationCover,
|
||||
basePlayerImpl.getThumbnail());
|
||||
|
|
Loading…
Reference in New Issue