diff options
author | Danesh M <daneshm90@gmail.com> | 2013-10-07 19:29:18 -0700 |
---|---|---|
committer | Danesh M <daneshm90@gmail.com> | 2013-10-07 19:29:18 -0700 |
commit | 277a45fb839880adf89bc4f2bc098154b71c8b2a (patch) | |
tree | 39d65b7021e13ae0378918c88ef937d88d0362be | |
parent | 0baa7baf0eb9e95a1a19c43d1c5bce7e83c79c55 (diff) | |
download | android_packages_apps_Trebuchet-277a45fb839880adf89bc4f2bc098154b71c8b2a.tar.gz android_packages_apps_Trebuchet-277a45fb839880adf89bc4f2bc098154b71c8b2a.tar.bz2 android_packages_apps_Trebuchet-277a45fb839880adf89bc4f2bc098154b71c8b2a.zip |
Trebuchet : Fix cellsize for dynamic changes
When the grid size is changed, this logic does not take that into account.
Fix that by allowing the cellWidth/cellHeight to be set in onMeasure.
Change-Id: I58938eea806a527d1cb54786fa045181455fefff
-rw-r--r-- | src/com/cyanogenmod/trebuchet/CellLayout.java | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/com/cyanogenmod/trebuchet/CellLayout.java b/src/com/cyanogenmod/trebuchet/CellLayout.java index eab7d1e02..6da8875ed 100644 --- a/src/com/cyanogenmod/trebuchet/CellLayout.java +++ b/src/com/cyanogenmod/trebuchet/CellLayout.java @@ -283,11 +283,6 @@ public class CellLayout extends ViewGroup { mShortcutsAndWidgets = new ShortcutAndWidgetContainer(context); - if (!LauncherApplication.isScreenLarge()){ - 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); addView(mShortcutsAndWidgets); } |