mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-03 09:26:51 +00:00
Don't perform collision checks for items in folders.
Bug: 2735146 Change-Id: Ie4d03b09cc75bfc176ec91be6f6f4369af5cc2a3
This commit is contained in:
@@ -672,6 +672,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