From a4b4016bcd90da673ba245f83621ef7128fa1cd6 Mon Sep 17 00:00:00 2001 From: Michael Jurka Date: Wed, 9 Mar 2011 14:53:27 -0800 Subject: [PATCH] Fix bug: workspace screens not being rendered in spring-loaded mode Bug # 4024334 --- src/com/android/launcher2/Workspace.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/com/android/launcher2/Workspace.java b/src/com/android/launcher2/Workspace.java index 5a230eb903..7956b4559a 100644 --- a/src/com/android/launcher2/Workspace.java +++ b/src/com/android/launcher2/Workspace.java @@ -1181,8 +1181,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); } }