OSDN Git Service

Fix concurrency issues when parceling StatusBarNotifications.
authorDaniel Sandler <dsandler@android.com>
Thu, 18 Apr 2013 18:52:45 +0000 (14:52 -0400)
committerDaniel Sandler <dsandler@android.com>
Mon, 22 Apr 2013 19:14:55 +0000 (15:14 -0400)
commit1a497d3a2b1496c12949e47e55f8e46d8f585be5
treef94fde92b7408ac80ff1a2682297e703caad94de
parent5d1a182a8a2dd9613ef3b1f2de7b6a3d690ae890
Fix concurrency issues when parceling StatusBarNotifications.

Protip: Don't mess with Bundles after you've sent them off
for parceling in an RPC.

Note that this change reduces the payload size of
StatusBarNotification objects received in
onNotificationRemoved() callbacks; it scrubs out the
RemoteViews and Bitmaps just as the NoMan's internal archive
does. [You don't really need that information anyway when
hearing about a removed notification; most likely all you
need are the other slots on StatusBarNotification, but
nulling the whole Notification object breaks a lot of
clients.]

Bug: 8616295
Change-Id: Ic899045f2352b96dcf064d3e9e51dad52629aea3
core/java/android/app/Notification.java
core/java/android/service/notification/NotificationListenerService.java
core/java/android/service/notification/StatusBarNotification.java
services/java/com/android/server/NotificationManagerService.java