diff options
author | Romain Guy <romainguy@google.com> | 2010-10-12 11:55:50 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2010-10-12 11:55:50 -0700 |
commit | e852f5c46fd1875a0bb9d68ad398952c1caa10b1 (patch) | |
tree | 57f13a0c7ef8d81984e891f6c664a75c58c00f44 /core | |
parent | 8c409b7bb84c8c21839dda907ec013fbf43f8dc7 (diff) | |
parent | a3496a9e6011e73deadd33bd0edd9229512e23d3 (diff) | |
download | frameworks_base-e852f5c46fd1875a0bb9d68ad398952c1caa10b1.zip frameworks_base-e852f5c46fd1875a0bb9d68ad398952c1caa10b1.tar.gz frameworks_base-e852f5c46fd1875a0bb9d68ad398952c1caa10b1.tar.bz2 |
Merge "Fix invisible views issue in Launcher."
Diffstat (limited to 'core')
-rw-r--r-- | core/java/android/view/View.java | 2 | ||||
-rw-r--r-- | core/java/android/view/ViewGroup.java | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java index 472f7b4..7ee360d 100644 --- a/core/java/android/view/View.java +++ b/core/java/android/view/View.java @@ -5468,9 +5468,11 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility public void setAlpha(float alpha) { mAlpha = alpha; if (onSetAlpha((int) (alpha * 255))) { + mPrivateFlags |= ALPHA_SET; // subclass is handling alpha - don't optimize rendering cache invalidation invalidate(); } else { + mPrivateFlags &= ~ALPHA_SET; invalidate(false); } } diff --git a/core/java/android/view/ViewGroup.java b/core/java/android/view/ViewGroup.java index be6aa43..b1db5ca 100644 --- a/core/java/android/view/ViewGroup.java +++ b/core/java/android/view/ViewGroup.java @@ -2188,7 +2188,9 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager float alpha = child.getAlpha(); // Bail out early if the view does not need to be drawn - if (alpha <= ViewConfiguration.ALPHA_THRESHOLD) return more; + if (alpha <= ViewConfiguration.ALPHA_THRESHOLD && (child.mPrivateFlags & ALPHA_SET) == 0) { + return more; + } child.computeScroll(); |