OSDN Git Service

Ensure that filtered notifications are removed from BadgeInfo.
authorTony Wickham <twickham@google.com>
Fri, 10 Feb 2017 16:03:22 +0000 (08:03 -0800)
committerTony <twickham@google.com>
Mon, 13 Feb 2017 15:02:26 +0000 (07:02 -0800)
commit988f34b7f2bb7e57d99ec19fbe9b7024da1fe52f
treed0fa2bb4e661e30c9f68bf535f317176f1768604
parentee544c5d243698e64990e07917df1de804ffbe44
Ensure that filtered notifications are removed from BadgeInfo.

There are cases where a BadgeInfo can contain a key that is later
used for a notification that should be filtered out. So instead
of simply not sending filtered notifications to PopupDataProvider,
now we explicitly send them and remove the corresponding key from
the BadgeInfo if it exists.

Bug: 35239510
Change-Id: I9532f47b1f07b44234f8707657b15b0de519b347
src/com/android/launcher3/notification/NotificationListener.java
src/com/android/launcher3/popup/PopupDataProvider.java