summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/PagedViewGridLayout.java
diff options
context:
space:
mode:
authorAdam Cohen <adamcohen@google.com>2014-08-10 18:30:55 -0700
committerAdam Cohen <adamcohen@google.com>2014-08-11 15:40:37 +0000
commit4e243a2dad3700868035256af1882d7a4fee2385 (patch)
tree47545a50e089337b8c912ac8bd406970cdf6e7f1 /src/com/android/launcher3/PagedViewGridLayout.java
parent9bfdb76aaf5c8679b8f2ee3a9a3df2becefb947a (diff)
downloadandroid_packages_apps_Trebuchet-4e243a2dad3700868035256af1882d7a4fee2385.tar.gz
android_packages_apps_Trebuchet-4e243a2dad3700868035256af1882d7a4fee2385.tar.bz2
android_packages_apps_Trebuchet-4e243a2dad3700868035256af1882d7a4fee2385.zip
Updating the widget tray
-> adding dark panel / associated visual updates -> cleaning up the sizing / padding / to match all apps -> fixing a couple things from previous CL -> (removed Context#getDrawable() calls, L-only) Change-Id: Ia65a6eb704b35f74e7305be9334c27971b22235a
Diffstat (limited to 'src/com/android/launcher3/PagedViewGridLayout.java')
-rw-r--r--src/com/android/launcher3/PagedViewGridLayout.java12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/com/android/launcher3/PagedViewGridLayout.java b/src/com/android/launcher3/PagedViewGridLayout.java
index b28686113..f69fa562d 100644
--- a/src/com/android/launcher3/PagedViewGridLayout.java
+++ b/src/com/android/launcher3/PagedViewGridLayout.java
@@ -56,18 +56,6 @@ public class PagedViewGridLayout extends GridLayout implements Page {
}
}
- protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
- // PagedView currently has issues with different-sized pages since it calculates the
- // offset of each page to scroll to before it updates the actual size of each page
- // (which can change depending on the content if the contents aren't a fixed size).
- // We work around this by having a minimum size on each widget page).
- int widthSpecSize = Math.min(getSuggestedMinimumWidth(),
- MeasureSpec.getSize(widthMeasureSpec));
- int widthSpecMode = MeasureSpec.EXACTLY;
- super.onMeasure(MeasureSpec.makeMeasureSpec(widthSpecSize, widthSpecMode),
- heightMeasureSpec);
- }
-
@Override
protected void onDetachedFromWindow() {
super.onDetachedFromWindow();