Fix the folder bug. The change that had previously fixed this got reverted somehow.
Change-Id: I308656a5b1748e8aca254410b049110afaa7affc
This commit is contained in:
parent
36354e4e73
commit
774b327991
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue