Never skip drawing SurfaceViews.
Change-Id: I07fbc632b01d96cee16b6e000e0cbf05238a442b
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 @@
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;
}