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
This commit is contained in:
Sunny Goyal
2016-08-10 17:00:15 -07:00
parent ea5bcba847
commit 95f3d6ba2c
3 changed files with 51 additions and 5 deletions
+3
View File
@@ -1090,6 +1090,9 @@ public class Launcher extends Activity
if (!isWorkspaceLoading()) {
// Process any items that were added while Launcher was away.
InstallShortcutReceiver.disableAndFlushInstallQueue(this);
// Refresh shortcuts if the permission changed.
mModel.refreshShortcutsIfRequired();
}
if (shouldShowDiscoveryBounce()) {