-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…
Reference in New Issue