Commit 3c8a2c4e by jaewan Committed by Ian Baker

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
parent e95b1510
...@@ -259,7 +259,7 @@ import java.util.concurrent.TimeoutException; ...@@ -259,7 +259,7 @@ import java.util.concurrent.TimeoutException;
return appIcon; return appIcon;
} else { } else {
// App icon is not set. // 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;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment