OSDN Git Service

Remove shortcuts that no longer exist or are no longer pinned.
authorTony Wickham <twickham@google.com>
Fri, 5 Aug 2016 19:44:51 +0000 (12:44 -0700)
committerTony Wickham <twickham@google.com>
Thu, 22 Sep 2016 23:54:57 +0000 (16:54 -0700)
commit7695e603bf1f4369115ba64c24e8b09c213b4e9c
tree0506d29538bd519211c7007d3c8a5583a99a00b9
parent4d917a9793ca0abd079859529a9966182d823c58
Remove shortcuts that no longer exist or are no longer pinned.

(This change is in the onShortcutsChanged() callback.)

- Remove all workspace icons that correspond to shortcuts that
  are now unpinned
- Remove all workspace icons that have the same package and
  user handle as passed in onShortcutsChanged(), if they aren't
  included in the list of shortcuts that is also passed.

These cases will happen for static and dynamic shortcuts,
respectively, when an app's data is cleared.

Bug: 30316501
Change-Id: I50db6567cb318d087012ab5d8208e765b81c6f99
src/com/android/launcher3/LauncherModel.java