mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-03 01:16:49 +00:00
Fix the folder bug. The change that had previously fixed this got reverted somehow.
Change-Id: I308656a5b1748e8aca254410b049110afaa7affc
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user