Merge "Fix bug: workspace screens not being rendered in spring-loaded mode" into honeycomb-mr1

This commit is contained in:
Michael Jurka
2011-03-09 15:49:40 -08:00
committed by Android (Google) Code Review
+3 -2
View File
@@ -1184,8 +1184,9 @@ public class Workspace extends SmoothPagedView
final int pageCount = getChildCount();
final long drawingTime = getDrawingTime();
for (int i = 0; i < pageCount; i++) {
final View page = (View) getChildAt(i);
if (page.getVisibility() == VISIBLE && page.getAlpha() != 0f) {
final CellLayout page = (CellLayout) getChildAt(i);
if (page.getVisibility() == VISIBLE
&& (page.getAlpha() != 0f || page.getBackgroundAlpha() != 0f)) {
drawChild(canvas, page, drawingTime);
}
}