OSDN Git Service

Fixed a bug with a legacy notification API
authorSelim Cinek <cinek@google.com>
Mon, 13 Jun 2016 22:47:03 +0000 (15:47 -0700)
committerSelim Cinek <cinek@google.com>
Mon, 13 Jun 2016 22:47:03 +0000 (15:47 -0700)
commit4ac6f6010bf18f331d2081699a57ce6a787e4fdc
treecd0578ecf9c5300dbde5275b48c5920462cbde31
parentbbcb733d802e9fbddaff899e0def8d250e803ebc
Fixed a bug with a legacy notification API

When using setLatestEventInfo the icons would not be shown
at all anymore, leading to a crash if they were grouped.
This CL makes sure the smallIcon is always set even for those
legacy apps.
It also fixes the usage of setShow when, as legacy apps wouldn't
have the time anymore.

Change-Id: I2645175b2adabcedbbfec7a502b89d143d2b9bd3
Fixes: 29255365
Fixes: 27430676
core/java/android/app/Notification.java