mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-02 00:36:49 +00:00
Cleaning up grid size specification in Launcher
This commit eliminates the notion of in-place rotations and a bunch of associated complexities (including the notion of canonical coordinates). Further, the number of x and y cells per workspace screen is now being stored in a single location in the XML definition of Workspace. This fixes a couple bugs where incorrect values were being used. Finally, eliminated the notion of "shortAxis" and "longAxis" in terms of padding and cell count. These have been translated to corresponding x and y axis values. Change-Id: I30cfed66f82d739355b3f01730b28b6c0437989c
This commit is contained in:
@@ -84,8 +84,8 @@ public class InstallShortcutReceiver extends BroadcastReceiver {
|
||||
}
|
||||
|
||||
private static boolean findEmptyCell(Context context, int[] xy, int screen) {
|
||||
final int xCount = Launcher.NUMBER_CELLS_X;
|
||||
final int yCount = Launcher.NUMBER_CELLS_Y;
|
||||
final int xCount = LauncherModel.getCellCountX();
|
||||
final int yCount = LauncherModel.getCellCountY();
|
||||
boolean[][] occupied = new boolean[xCount][yCount];
|
||||
|
||||
ArrayList<ItemInfo> items = LauncherModel.getItemsInLocalCoordinates(context);
|
||||
|
||||
Reference in New Issue
Block a user