mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-02 00:36:49 +00:00
Handle null small icon
It shouldn't be possible to have a null small icon, but apparently there are cases where we get one anyway. Might as well handle it gracefully instead of crashing. Bug: 67156108 Change-Id: I01ad0251920f7f531a3019eb694946c3d295f9de
This commit is contained in:
@@ -73,7 +73,7 @@ public class NotificationInfo implements View.OnClickListener {
|
||||
if (icon == null) {
|
||||
// Use the small icon.
|
||||
icon = notification.getSmallIcon();
|
||||
mIconDrawable = icon.loadDrawable(context);
|
||||
mIconDrawable = icon == null ? null : icon.loadDrawable(context);
|
||||
mIconColor = statusBarNotification.getNotification().color;
|
||||
mIsIconLarge = false;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user