summaryrefslogtreecommitdiffstats
path: root/src/com/cyanogenmod/trebuchet/Hotseat.java
diff options
context:
space:
mode:
authornebkat <nebkat@teamhacksung.org>2012-03-25 12:40:04 +0100
committerRicardo Cerqueira <cyanogenmod@cerqueira.org>2012-11-19 01:21:04 +0000
commit09bd1a6e51772fcf21c3a87c529652768fc8ed4b (patch)
tree92c098372fbbc640748b6dd35e1c9482eef51b34 /src/com/cyanogenmod/trebuchet/Hotseat.java
parent7695adfe3e4c0d8d16dc99c849b5098d102d347b (diff)
downloadpackages_apps_trebuchet-09bd1a6e51772fcf21c3a87c529652768fc8ed4b.zip
packages_apps_trebuchet-09bd1a6e51772fcf21c3a87c529652768fc8ed4b.tar.gz
packages_apps_trebuchet-09bd1a6e51772fcf21c3a87c529652768fc8ed4b.tar.bz2
Hotseat: Default Cell Counts
Change-Id: I9aad8d04145bd20ae7b2b6198c556254f949aba4
Diffstat (limited to 'src/com/cyanogenmod/trebuchet/Hotseat.java')
-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 f47e8b1..9b7c707 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);