summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authornebkat <nebkat@teamhacksung.org>2013-01-06 15:01:45 +0000
committernebkat <nebkat@teamhacksung.org>2013-01-06 15:16:38 +0000
commitc1e82f60c502379e3e8a116cd36d6d5c99c03f1d (patch)
tree9880fa4d2f56cad2a58416ab730be3080419d854 /src
parentc8a095f734d520f23ac32184189d5ddc2f9274de (diff)
downloadandroid_packages_apps_Trebuchet-c1e82f60c502379e3e8a116cd36d6d5c99c03f1d.tar.gz
android_packages_apps_Trebuchet-c1e82f60c502379e3e8a116cd36d6d5c99c03f1d.tar.bz2
android_packages_apps_Trebuchet-c1e82f60c502379e3e8a116cd36d6d5c99c03f1d.zip
CellLayout: Use default and target cell counts
Change-Id: I586a9ca0c5272a85f03bfe7d58f1b4371aba9034
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);