NP check in executor run code
This commit is contained in:
parent
17c87d9bfc
commit
96132d0da9
|
@ -273,11 +273,11 @@ public class PlaybackServiceMediaPlayer implements SharedPreferences.OnSharedPre
|
|||
}
|
||||
|
||||
private void updateMediaSessionMetadata() {
|
||||
if(this.media == null) {
|
||||
executor.execute(() -> {
|
||||
final Playable p = this.media;
|
||||
if(p == null) {
|
||||
return;
|
||||
}
|
||||
executor.execute(() -> {
|
||||
Playable p = this.media;
|
||||
MediaMetadataCompat.Builder builder = new MediaMetadataCompat.Builder();
|
||||
builder.putString(MediaMetadataCompat.METADATA_KEY_ARTIST, p.getFeedTitle());
|
||||
builder.putString(MediaMetadataCompat.METADATA_KEY_TITLE, p.getEpisodeTitle());
|
||||
|
|
Loading…
Reference in New Issue