diff options
author | nebkat <nebkat@teamhacksung.org> | 2013-01-06 15:01:45 +0000 |
---|---|---|
committer | nebkat <nebkat@teamhacksung.org> | 2013-01-06 15:16:38 +0000 |
commit | c1e82f60c502379e3e8a116cd36d6d5c99c03f1d (patch) | |
tree | 9880fa4d2f56cad2a58416ab730be3080419d854 /src/com/cyanogenmod | |
parent | c8a095f734d520f23ac32184189d5ddc2f9274de (diff) | |
download | packages_apps_trebuchet-c1e82f60c502379e3e8a116cd36d6d5c99c03f1d.zip packages_apps_trebuchet-c1e82f60c502379e3e8a116cd36d6d5c99c03f1d.tar.gz packages_apps_trebuchet-c1e82f60c502379e3e8a116cd36d6d5c99c03f1d.tar.bz2 |
CellLayout: Use default and target cell counts
Change-Id: I586a9ca0c5272a85f03bfe7d58f1b4371aba9034
Diffstat (limited to 'src/com/cyanogenmod')
-rw-r--r-- | src/com/cyanogenmod/trebuchet/CellLayout.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/cyanogenmod/trebuchet/CellLayout.java b/src/com/cyanogenmod/trebuchet/CellLayout.java index 6e12831..1fd5a5f 100644 --- a/src/com/cyanogenmod/trebuchet/CellLayout.java +++ b/src/com/cyanogenmod/trebuchet/CellLayout.java @@ -281,8 +281,8 @@ public class CellLayout extends ViewGroup { mShortcutsAndWidgets = new ShortcutAndWidgetContainer(context); if (!LauncherApplication.isScreenLarge()){ - mCellWidth = (mCellWidth * 4) / mCountX; - mCellHeight = (mCellHeight * 4) / mCountY; + mCellWidth = (mCellWidth * res.getInteger(R.integer.default_cell_count_x)) / mCountX; + mCellHeight = (mCellHeight * res.getInteger(R.integer.default_cell_count_y)) / mCountY; } mShortcutsAndWidgets.setCellDimensions(mCellWidth, mCellHeight, mWidthGap, mHeightGap); |