diff options
Diffstat (limited to 'src/com/android/launcher3/Launcher.java')
-rw-r--r-- | src/com/android/launcher3/Launcher.java | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/com/android/launcher3/Launcher.java b/src/com/android/launcher3/Launcher.java index 3b903c062..aa403db01 100644 --- a/src/com/android/launcher3/Launcher.java +++ b/src/com/android/launcher3/Launcher.java @@ -4719,6 +4719,26 @@ public class Launcher extends Activity } /** + * Some shortcuts were updated in the background. + * + * Implementation of the method from LauncherModel.Callbacks. + */ + public void bindShortcutsUpdated(final ArrayList<ShortcutInfo> shortcuts) { + Runnable r = new Runnable() { + public void run() { + bindShortcutsUpdated(shortcuts); + } + }; + if (waitUntilResume(r)) { + return; + } + + if (mWorkspace != null) { + mWorkspace.updateShortcuts(shortcuts); + } + } + + /** * Update the state of a package, typically related to install state. * * Implementation of the method from LauncherModel.Callbacks. |