From 67a2f7b5a1b3ec5d2440d8be6e5ee4274e90e226 Mon Sep 17 00:00:00 2001 From: Romain Guy Date: Wed, 13 Oct 2010 15:35:22 -0700 Subject: Never skip drawing SurfaceViews. Change-Id: I07fbc632b01d96cee16b6e000e0cbf05238a442b --- core/java/android/view/ViewGroup.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- cgit v1.1