summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authornebkat <nebkat@teamhacksung.org>2013-01-06 07:17:33 -0800
committerGerrit Code Review <gerrit@review.cyanogenmod.com>2013-01-06 07:17:33 -0800
commit57fc0ef802847dc323fc05b8e1f42f48b72d9a73 (patch)
tree5dcb39c050c01273576c5b406652942d32225dc3 /src
parenta55da3588289f25d9b2a29076f14298a9601d3a5 (diff)
parentc1e82f60c502379e3e8a116cd36d6d5c99c03f1d (diff)
downloadandroid_packages_apps_Trebuchet-57fc0ef802847dc323fc05b8e1f42f48b72d9a73.tar.gz
android_packages_apps_Trebuchet-57fc0ef802847dc323fc05b8e1f42f48b72d9a73.tar.bz2
android_packages_apps_Trebuchet-57fc0ef802847dc323fc05b8e1f42f48b72d9a73.zip
Merge "CellLayout: Use default and target cell counts" into cm-10.1
Diffstat (limited to 'src')
-rw-r--r--src/com/cyanogenmod/trebuchet/CellLayout.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/cyanogenmod/trebuchet/CellLayout.java b/src/com/cyanogenmod/trebuchet/CellLayout.java
index 6e128319f..1fd5a5fa8 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);