summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/ShortcutAndWidgetContainer.java
diff options
context:
space:
mode:
authorVladimir Marko <vmarko@google.com>2013-10-04 16:42:17 +0100
committerVladimir Marko <vmarko@google.com>2013-10-07 15:06:20 +0100
commit2824b0750e978e5a63f804a42e9eedba53e8d21d (patch)
treefc00d60a915c8322d2dacd3f1c197b0eec52d076 /src/com/android/launcher3/ShortcutAndWidgetContainer.java
parentd4507eefa37245c012a68d148aa5f14d4638f96d (diff)
downloadandroid_packages_apps_Trebuchet-2824b0750e978e5a63f804a42e9eedba53e8d21d.tar.gz
android_packages_apps_Trebuchet-2824b0750e978e5a63f804a42e9eedba53e8d21d.tar.bz2
android_packages_apps_Trebuchet-2824b0750e978e5a63f804a42e9eedba53e8d21d.zip
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
Diffstat (limited to 'src/com/android/launcher3/ShortcutAndWidgetContainer.java')
-rw-r--r--src/com/android/launcher3/ShortcutAndWidgetContainer.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/launcher3/ShortcutAndWidgetContainer.java b/src/com/android/launcher3/ShortcutAndWidgetContainer.java
index b9511005e..fcd6f19ae 100644
--- a/src/com/android/launcher3/ShortcutAndWidgetContainer.java
+++ b/src/com/android/launcher3/ShortcutAndWidgetContainer.java
@@ -103,7 +103,9 @@ public class ShortcutAndWidgetContainer extends ViewGroup {
for (int i = 0; i < count; i++) {
View child = getChildAt(i);
- measureChild(child);
+ if (child.getVisibility() != GONE) {
+ measureChild(child);
+ }
}
}