OSDN Git Service

Handle errors inflating notifications (and their icons).
authorJoe Onorato <joeo@android.com>
Fri, 4 Jun 2010 20:08:02 +0000 (16:08 -0400)
committerJoe Onorato <joeo@android.com>
Wed, 9 Jun 2010 16:15:25 +0000 (09:15 -0700)
commit005847b03b2ebe3eb1a974a8a04ad51bca6636cd
tree1664f30f2320bddcf44b0af581b492589a38fcda
parentd956ae8b813da893ab6a9357acfe287c529d6ac2
Handle errors inflating notifications (and their icons).

On an inflation error, the StatusBarService cleans up, removes / doesn't add
the views, and calls into the StatusBarManagerService, which tells the
NotificationManagerService to remove the notification.

That then calls all the way back into the StatusBarService, but I think being
extra careful is okay.  Throughout the status bar, it's all keyed off of the
IBinder key, so if the app comes in with a good notification while we're
cleaning up, we won't lose the new notification or anything like that.

Change-Id: Iea78a637495a8b67810c214b951d5ddb93becacb
core/java/com/android/internal/statusbar/IStatusBarService.aidl
packages/SystemUI/src/com/android/systemui/statusbar/PhoneStatusBarService.java
packages/SystemUI/src/com/android/systemui/statusbar/StatusBarIconView.java
services/java/com/android/server/NotificationManagerService.java
services/java/com/android/server/status/StatusBarManagerService.java
tests/StatusBar/src/com/android/statusbartest/NotificationTestList.java