Fix the folder bug. The change that had previously fixed this got reverted somehow.

Change-Id: I308656a5b1748e8aca254410b049110afaa7affc
This commit is contained in:
Joe Onorato 2010-06-08 17:39:37 -07:00
parent 36354e4e73
commit 774b327991
1 changed files with 4 additions and 0 deletions

View File

@ -670,6 +670,10 @@ public class LauncherModel extends BroadcastReceiver {
// check & update map of what's occupied; used to discard overlapping/invalid items
private boolean checkItemPlacement(ItemInfo occupied[][][], ItemInfo item) {
if (item.container != LauncherSettings.Favorites.CONTAINER_DESKTOP) {
return true;
}
for (int x = item.cellX; x < (item.cellX+item.spanX); x++) {
for (int y = item.cellY; y < (item.cellY+item.spanY); y++) {
if (occupied[item.screen][x][y] != null) {