Skip to content
This repository was archived by the owner on Oct 6, 2022. It is now read-only.

Commit fa42647

Browse files
authored
condition added for notificationIcon
1 parent 423d293 commit fa42647

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

android/src/main/java/com/tanguyantoine/react/MusicControlModule.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,8 +370,10 @@ synchronized public void setNowPlaying(ReadableMap metadata) {
370370
nb.setContentInfo(album);
371371
nb.setColor(notificationColor);
372372
nb.setColorized(false);
373-
374-
notification.setCustomNotificationIcon(notificationIcon);
373+
374+
if(notificationIcon != null){
375+
notification.setCustomNotificationIcon(notificationIcon);
376+
}
375377

376378
if(metadata.hasKey("artwork")) {
377379
String artwork = null;

0 commit comments

Comments
 (0)