commit | 2824b0750e978e5a63f804a42e9eedba53e8d21d | [log] [tgz] |
---|---|---|
author | Vladimir Marko <vmarko@google.com> | Fri Oct 04 16:42:17 2013 +0100 |
committer | Vladimir Marko <vmarko@google.com> | Mon Oct 07 15:06:20 2013 +0100 |
tree | fc00d60a915c8322d2dacd3f1c197b0eec52d076 | |
parent | d4507eefa37245c012a68d148aa5f14d4638f96d [diff] [blame] |
Don't measure GONE views. Don't measure GONE views in ShortcutAndWidgetContainer and PagedView. They will not be processed in onLayout anyway. This is pre-requisite for avoiding costly onMeasure in GEL. Bug: 10734110 Change-Id: I4c1bef41d9185af5eda42b43371546c60f341f87
diff --git a/src/com/android/launcher3/ShortcutAndWidgetContainer.java b/src/com/android/launcher3/ShortcutAndWidgetContainer.java index b951100..fcd6f19 100644 --- a/src/com/android/launcher3/ShortcutAndWidgetContainer.java +++ b/src/com/android/launcher3/ShortcutAndWidgetContainer.java
@@ -103,7 +103,9 @@ for (int i = 0; i < count; i++) { View child = getChildAt(i); - measureChild(child); + if (child.getVisibility() != GONE) { + measureChild(child); + } } }