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:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user