mirror of
https://github.com/samsonjs/media.git
synced 2026-03-25 09:25:53 +00:00
Stop using vector drawable on Notification for API<21
This fixes flaky failure when posting notification, although why it's not crashing 100% is unknown. PiperOrigin-RevId: 422168452
This commit is contained in:
parent
e95b15100b
commit
3c8a2c4e2e
1 changed files with 1 additions and 1 deletions
|
|
@ -259,7 +259,7 @@ import java.util.concurrent.TimeoutException;
|
|||
return appIcon;
|
||||
} else {
|
||||
// App icon is not set.
|
||||
return R.drawable.media_session_service_notification_ic_music_note;
|
||||
return Util.SDK_INT >= 21 ? R.drawable.media_session_service_notification_ic_music_note : 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue