summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/CellLayout.java
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2013-09-26 16:07:17 -0700
committerWinson Chung <winsonc@google.com>2013-09-26 16:08:03 -0700
commitfe411c8e31f44a5a977d76885e9b20dece57962d (patch)
treefca2b4e262d3dead5bf04144272cdbbc71ae6f2f /src/com/android/launcher3/CellLayout.java
parent88cc3f5aa2e9ac3ae0b24e563a44d320cc089cd8 (diff)
downloadandroid_packages_apps_Trebuchet-fe411c8e31f44a5a977d76885e9b20dece57962d.tar.gz
android_packages_apps_Trebuchet-fe411c8e31f44a5a977d76885e9b20dece57962d.tar.bz2
android_packages_apps_Trebuchet-fe411c8e31f44a5a977d76885e9b20dece57962d.zip
Fixing issue where incorrect min/max widths/heights were being reported to widgets. (Bug 10940505)
Diffstat (limited to 'src/com/android/launcher3/CellLayout.java')
-rw-r--r--src/com/android/launcher3/CellLayout.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/launcher3/CellLayout.java b/src/com/android/launcher3/CellLayout.java
index 22492ac31..a114ec383 100644
--- a/src/com/android/launcher3/CellLayout.java
+++ b/src/com/android/launcher3/CellLayout.java
@@ -927,6 +927,8 @@ public class CellLayout extends ViewGroup {
return r;
}
+ /** Return a rect that has the cellWidth/cellHeight (left, top), and
+ * widthGap/heightGap (right, bottom) */
static void getMetrics(Rect metrics, int paddedMeasureWidth,
int paddedMeasureHeight, int countX, int countY) {
LauncherAppState app = LauncherAppState.getInstance();