am aad5f9e9: am 813071aa: am e6168662: Fix bug 2242465 - Can add shortcuts while the "3d all apps" is open.
Merge commit 'aad5f9e943479e9e6cb5e882bff99decb097a246'
* commit 'aad5f9e943479e9e6cb5e882bff99decb097a246':
Fix bug 2242465 - Can add shortcuts while the "3d all apps" is open.
diff --git a/src/com/android/launcher2/Launcher.java b/src/com/android/launcher2/Launcher.java
index 41a7fb4..2c59b4c 100644
--- a/src/com/android/launcher2/Launcher.java
+++ b/src/com/android/launcher2/Launcher.java
@@ -1057,6 +1057,7 @@
}
private void addItems() {
+ closeAllApps(true);
showAddDialog(mMenuAddInfo);
}
@@ -1252,6 +1253,7 @@
}
private void startWallpaper() {
+ closeAllApps(true);
final Intent pickWallpaper = new Intent(Intent.ACTION_SET_WALLPAPER);
Intent chooser = Intent.createChooser(pickWallpaper,
getText(R.string.chooser_wallpaper));