summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/com/cyanogenmod/trebuchet/Hotseat.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/com/cyanogenmod/trebuchet/Hotseat.java b/src/com/cyanogenmod/trebuchet/Hotseat.java
index f47e8b104..9b7c70738 100644
--- a/src/com/cyanogenmod/trebuchet/Hotseat.java
+++ b/src/com/cyanogenmod/trebuchet/Hotseat.java
@@ -42,6 +42,9 @@ public class Hotseat extends FrameLayout {
private boolean mTransposeLayoutWithOrientation;
private boolean mIsLandscape;
+ private static final int DEFAULT_CELL_COUNT_X = 5;
+ private static final int DEFAULT_CELL_COUNT_Y = 1;
+
public Hotseat(Context context) {
this(context, null);
}
@@ -96,8 +99,8 @@ public class Hotseat extends FrameLayout {
@Override
protected void onFinishInflate() {
super.onFinishInflate();
- if (mCellCountX < 0) mCellCountX = LauncherModel.getCellCountX();
- if (mCellCountY < 0) mCellCountY = LauncherModel.getCellCountY();
+ if (mCellCountX < 0) mCellCountX = DEFAULT_CELL_COUNT_X;
+ if (mCellCountY < 0) mCellCountY = DEFAULT_CELL_COUNT_Y;
mContent = (CellLayout) findViewById(R.id.layout);
mContent.setGridSize(mCellCountX, mCellCountY);
mContent.setIsHotseat(true);