OSDN Git Service

Fixed a bug where autobundling could lead to bugs
authorSelim Cinek <cinek@google.com>
Wed, 18 May 2016 22:16:58 +0000 (15:16 -0700)
committerSelim Cinek <cinek@google.com>
Wed, 18 May 2016 23:31:41 +0000 (16:31 -0700)
commit5b03ce95c77e16b46a177af32e640d71b7ff4e12
treef7652f19e3c26768a7ce94c382a2ad7bf3864314
parentce80acd73a5a34d15531d8377fa5b16d0ec5deb7
Fixed a bug where autobundling could lead to bugs

Notifications could appear twice if a notification with an app
group became bundled and one could not be swiped away anymore.
This is because we were unconditionally copying over the override
key even if the notification just became a group.

This also fixes a nullpointer that could happen with a racecondition
when a notification was cancelled and it tried to be used for autobundling.

This also fixes an issue that the autobundling wasn't working correctly
when a notification didn't have a group set but was set to be a
group summary.

Change-Id: Icd971f16ae0804ce162fd3171fcdd99bd04f3885
Fixes: 28706404
Fixes: 28628237
services/core/java/com/android/server/notification/NotificationManagerService.java
services/core/java/com/android/server/notification/NotificationRecord.java