summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMike Cleron <mcleron@google.com>2011-02-03 21:17:09 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-02-03 21:17:09 -0800
commitf6141980c84f64618f083297bc37cfae7e0fca84 (patch)
tree4d8822cde4f574cb5324fbef2eef107de6c95d12 /core
parent4ad2547fe08bab430d7d9f9cc4b789410856c9c3 (diff)
parente28b430486a407282d92813c957c81a9d63a337e (diff)
downloadframeworks_base-f6141980c84f64618f083297bc37cfae7e0fca84.zip
frameworks_base-f6141980c84f64618f083297bc37cfae7e0fca84.tar.gz
frameworks_base-f6141980c84f64618f083297bc37cfae7e0fca84.tar.bz2
Merge changes I46acd27a,I70b322e1 into honeycomb
* changes: aa is better than cc Prevent ProgressBar from slowing down everything. bug #3422568
Diffstat (limited to 'core')
-rw-r--r--core/java/android/view/ViewGroup.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/core/java/android/view/ViewGroup.java b/core/java/android/view/ViewGroup.java
index 6981b9c..26f8627 100644
--- a/core/java/android/view/ViewGroup.java
+++ b/core/java/android/view/ViewGroup.java
@@ -2224,10 +2224,12 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager
final View[] children = mChildren;
for (int i = 0; i < count; i++) {
final View child = children[i];
- child.mRecreateDisplayList = (child.mPrivateFlags & INVALIDATED) == INVALIDATED;
- child.mPrivateFlags &= ~INVALIDATED;
- child.getDisplayList();
- child.mRecreateDisplayList = false;
+ if ((child.mViewFlags & VISIBILITY_MASK) == VISIBLE || child.getAnimation() != null) {
+ child.mRecreateDisplayList = (child.mPrivateFlags & INVALIDATED) == INVALIDATED;
+ child.mPrivateFlags &= ~INVALIDATED;
+ child.getDisplayList();
+ child.mRecreateDisplayList = false;
+ }
}
}