diff options
Diffstat (limited to 'src/com/cyanogenmod/trebuchet/Hotseat.java')
-rw-r--r-- | src/com/cyanogenmod/trebuchet/Hotseat.java | 7 |
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); |