summaryrefslogtreecommitdiff
path: root/tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp
diff options
context:
space:
mode:
authorDan Sandler <dsandler@android.com>2015-05-19 20:59:12 -0400
committerThe Android Automerger <android-build@google.com>2015-05-20 10:00:11 -0700
commitc68772b68ade8feb2babb3fa2ad0f21860d9f316 (patch)
tree75df5b667e0a50a2748d1f679fb9053246e11ea7 /tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp
parentf92fed8f2f9761ad55d81ba2394b6e8a63183002 (diff)
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
Diffstat (limited to 'tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp')
0 files changed, 0 insertions, 0 deletions