OSDN Git Service

Fix updateIconBadges() in All Apps
authorTony Wickham <twickham@google.com>
Tue, 25 Apr 2017 21:13:20 +0000 (14:13 -0700)
committerTony Wickham <twickham@google.com>
Wed, 26 Apr 2017 15:39:12 +0000 (08:39 -0700)
commit4926ebfe6d6e6c7b65923521ec799daf414fec5d
tree5d86834cdaf77c8b246bc1a96b2d21468123412e
parent0fa96ea2f6c8a48917e619b3120beaa90698cb43
Fix updateIconBadges() in All Apps

Instead of notifyItemChanged(), we iterate over children of the
RecyclerView itself and call applyBadgeState() on affected icons.
This is the same logic we do for the workspace.

Issues this fixes:
- Icons flash when dismissing notifications
- Badge reappears on the icon while popup is open

Change-Id: I5c69d5c6bd47630c0241666b5f7f6f7ca97118f9
src/com/android/launcher3/allapps/AllAppsContainerView.java