diff options
author | Romain Guy <romainguy@google.com> | 2010-10-13 15:35:22 -0700 |
---|---|---|
committer | Romain Guy <romainguy@google.com> | 2010-10-13 17:24:41 -0700 |
commit | 67a2f7b5a1b3ec5d2440d8be6e5ee4274e90e226 (patch) | |
tree | 6d5ac5aedd3bc0b012537fb171a931770e6c06f2 | |
parent | 99bcdc52dcb365ed7d8cfa13540fb33fbcbbac9d (diff) | |
download | frameworks_base-67a2f7b5a1b3ec5d2440d8be6e5ee4274e90e226.zip frameworks_base-67a2f7b5a1b3ec5d2440d8be6e5ee4274e90e226.tar.gz frameworks_base-67a2f7b5a1b3ec5d2440d8be6e5ee4274e90e226.tar.bz2 |
Never skip drawing SurfaceViews.
Change-Id: I07fbc632b01d96cee16b6e000e0cbf05238a442b
-rw-r--r-- | core/java/android/view/ViewGroup.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/java/android/view/ViewGroup.java b/core/java/android/view/ViewGroup.java index b1db5ca..4eea2d2 100644 --- a/core/java/android/view/ViewGroup.java +++ b/core/java/android/view/ViewGroup.java @@ -2188,7 +2188,8 @@ 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 && (child.mPrivateFlags & ALPHA_SET) == 0) { + if (alpha <= ViewConfiguration.ALPHA_THRESHOLD && (child.mPrivateFlags & ALPHA_SET) == 0 && + !(child instanceof SurfaceView)) { return more; } |