From 277a45fb839880adf89bc4f2bc098154b71c8b2a Mon Sep 17 00:00:00 2001 From: Danesh M Date: Mon, 7 Oct 2013 19:29:18 -0700 Subject: 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 --- src/com/cyanogenmod/trebuchet/CellLayout.java | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/com/cyanogenmod/trebuchet') 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); } -- cgit v1.2.3