summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authornebkat <nebkat@teamhacksung.org>2012-03-25 12:40:04 +0100
committernebkat <nebkat@teamhacksung.org>2012-03-25 12:40:04 +0100
commit8cbec25bf063ea0995e4ca7592a5d00416ba3d96 (patch)
tree6218fc55812c1a8ced85a330af5d578a49555202 /src/com
parent8b5c5e516cc8dae7bcf68d15dd4263f7e741b70b (diff)
downloadandroid_packages_apps_Trebuchet-8cbec25bf063ea0995e4ca7592a5d00416ba3d96.tar.gz
android_packages_apps_Trebuchet-8cbec25bf063ea0995e4ca7592a5d00416ba3d96.tar.bz2
android_packages_apps_Trebuchet-8cbec25bf063ea0995e4ca7592a5d00416ba3d96.zip
Hotseat: Default Cell Counts
Change-Id: I9aad8d04145bd20ae7b2b6198c556254f949aba4
Diffstat (limited to 'src/com')
-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 f75333ccc..524da5acf 100644
--- a/src/com/cyanogenmod/trebuchet/Hotseat.java
+++ b/src/com/cyanogenmod/trebuchet/Hotseat.java
@@ -35,6 +35,9 @@ public class Hotseat extends FrameLayout {
private int mCellCountY;
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);
}
@@ -81,8 +84,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);