summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/com/cyanogenmod/trebuchet/LauncherProvider.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/com/cyanogenmod/trebuchet/LauncherProvider.java b/src/com/cyanogenmod/trebuchet/LauncherProvider.java
index 196e08da5..d7b17d279 100644
--- a/src/com/cyanogenmod/trebuchet/LauncherProvider.java
+++ b/src/com/cyanogenmod/trebuchet/LauncherProvider.java
@@ -616,11 +616,13 @@ public class LauncherProvider extends ContentProvider {
final int depth = parser.getDepth();
LauncherApplication app = ((LauncherApplication) mContext);
+ int cellCountX = app.getResources().getInteger(R.integer.target_cell_count_x);
+ int cellCountY = app.getResources().getInteger(R.integer.target_cell_count_y);
+ int hotseatCellCount = app.getResources().getInteger(R.integer.hotseat_cell_count);
final ItemInfo occupied[][][] =
new ItemInfo[Launcher.MAX_SCREEN_COUNT][Math.max(
- LauncherModel.getWorkspaceCellCountX(), LauncherModel.getHotseatCellCount())]
- [Math.max(LauncherModel.getWorkspaceCellCountX(),
- LauncherModel.getHotseatCellCount())];
+ cellCountX, hotseatCellCount)]
+ [Math.max(cellCountY, hotseatCellCount)];
int type;
while (((type = parser.next()) != XmlPullParser.END_TAG ||