Fixed NPE on updatePlaystate()
This commit is contained in:
parent
511d211d1d
commit
957e223e40
2 changed files with 2 additions and 2 deletions
|
|
@ -263,7 +263,7 @@ public class PlayingNotificationHelper {
|
|||
this.isPlaying = isPlaying;
|
||||
|
||||
if (notification == null) {
|
||||
updateNotification();
|
||||
return;
|
||||
}
|
||||
if (notificationLayout != null) {
|
||||
notificationLayout.setImageViewResource(R.id.action_play_pause,
|
||||
|
|
|
|||
|
|
@ -663,11 +663,11 @@ public class MusicService extends Service {
|
|||
} else {
|
||||
registerReceiversAndRemoteControlClient();
|
||||
player.start();
|
||||
notifyChange(PLAY_STATE_CHANGED);
|
||||
if (notNotifiedMetaChangedForCurrentTrack) {
|
||||
notifyChange(META_CHANGED);
|
||||
notNotifiedMetaChangedForCurrentTrack = false;
|
||||
}
|
||||
notifyChange(PLAY_STATE_CHANGED);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue