diff options
Diffstat (limited to 'src/com/android')
-rw-r--r-- | src/com/android/launcher2/Launcher.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/com/android/launcher2/Launcher.java b/src/com/android/launcher2/Launcher.java index 59f142a41..261569ef6 100644 --- a/src/com/android/launcher2/Launcher.java +++ b/src/com/android/launcher2/Launcher.java @@ -3567,8 +3567,12 @@ public final class Launcher extends Activity public void bindAppsUpdated(ArrayList<ApplicationInfo> apps) { setLoadOnResume(); removeDialog(DIALOG_CREATE_SHORTCUT); - mWorkspace.updateShortcuts(apps); - mAllAppsGrid.updateApps(apps); + if (mWorkspace != null) { + mWorkspace.updateShortcuts(apps); + } + if (mAllAppsGrid != null) { + mAllAppsGrid.updateApps(apps); + } if (mCustomizePagedView != null) { mCustomizePagedView.updateApps(apps); } |