diff options
-rw-r--r-- | src/com/android/launcher3/Launcher.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/com/android/launcher3/Launcher.java b/src/com/android/launcher3/Launcher.java index 95aefe674..e059feebf 100644 --- a/src/com/android/launcher3/Launcher.java +++ b/src/com/android/launcher3/Launcher.java @@ -3495,9 +3495,11 @@ public class Launcher extends Activity /* * TODO: FIX collision case */ - CellLayout cl = mWorkspace.getScreenWithId(item.screenId); - if (cl != null && cl.isOccupied(item.cellX, item.cellY)) { - throw new RuntimeException("OCCUPIED"); + if (item.container == LauncherSettings.Favorites.CONTAINER_DESKTOP) { + CellLayout cl = mWorkspace.getScreenWithId(item.screenId); + if (cl != null && cl.isOccupied(item.cellX, item.cellY)) { + throw new RuntimeException("OCCUPIED"); + } } workspace.addInScreenFromBind(shortcut, item.container, item.screenId, item.cellX, |