OSDN Git Service

Reloading workspace when the shortcuts permission changes
authorSunny Goyal <sunnygoyal@google.com>
Wed, 10 Aug 2016 23:09:29 +0000 (16:09 -0700)
committerSunny Goyal <sunnygoyal@google.com>
Thu, 11 Aug 2016 00:00:15 +0000 (17:00 -0700)
commit95f3d6ba2ca02a9841487777cfff43fb9df65ec7
tree520e94b5d4720cdfe16552a0e1c9baaf9f2f8ca6
parentea5bcba847a5740b29485ea40d2419841c8cd62c
Reloading workspace when the shortcuts permission changes

> Check for permission on every onResume
> If the permission is different than last known permission,
reload and rebind workspace.

Bug: 30789422
Change-Id: Idfa445815e29e2336505779545507d106b33a253
src/com/android/launcher3/Launcher.java
src/com/android/launcher3/LauncherModel.java
src/com/android/launcher3/shortcuts/DeepShortcutManager.java