mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 16:26:47 +00:00
Fixing issue where ItemInfo had errant cell coordinates leading to an array-out-of-bounds exception. (Bug 6333784)
Change-Id: I03c3fe32bd1d027143aeb8abf9275ecaa688070f
This commit is contained in:
@@ -174,8 +174,8 @@ public class InstallShortcutReceiver extends BroadcastReceiver {
|
||||
cellY = item.cellY;
|
||||
spanX = item.spanX;
|
||||
spanY = item.spanY;
|
||||
for (int x = cellX; x < cellX + spanX && x < xCount; x++) {
|
||||
for (int y = cellY; y < cellY + spanY && y < yCount; y++) {
|
||||
for (int x = cellX; 0 <= x && x < cellX + spanX && x < xCount; x++) {
|
||||
for (int y = cellY; 0 <= y && y < cellY + spanY && y < yCount; y++) {
|
||||
occupied[x][y] = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user