Deal more gracefully with null smallIcons.
First, when parceling a notification with no small icon: Well, you shouldn't attempt to do this anyway, since NoMan will reject a notification without a valid smallIcon. But setServiceForeground parcels up the Notification on its own before handing it off to NoMan, so it will crash on an invalid small icon. (In general, parceling code should never ever crash, even if the object is in an undesirable state.) And when build()ing a notification: Same thing---don't build a notification with no icon; you're going to have a bad time. But maybe you're going to fix it before you hand it off to NoMan. Or maybe it's just one page of a wearable notification, so it doesn't really need its own icon. Either way, Notification shouldn't crash. Bug: 21286186 Bug: 21298403 Change-Id: Ie482cde0a3afe3aaabf07be0536551b8e4bceba0
Loading
Please register or sign in to comment