Fixing two regressions in which side pages were not drawn or oriented correctly.

Change-Id: Ib936d7701c8962fc04e6fed2e3d624291fe8fc46
This commit is contained in:
Winson Chung
2012-01-30 12:18:04 -08:00
parent 63f541d52c
commit b33e05fa50
2 changed files with 3 additions and 3 deletions

View File

@@ -766,8 +766,8 @@ public abstract class PagedView extends ViewGroup {
// View.INVISIBLE, preventing re-drawing of their hardware layer
for (int i = getChildCount() - 1; i >= 0; i--) {
final View v = getPageAt(i);
if (leftScreen <= i && i <= rightScreen &&
v.getAlpha() > ViewConfiguration.ALPHA_THRESHOLD) {
if (leftScreen <= i && i <= rightScreen) {
v.setVisibility(VISIBLE);
drawChild(canvas, v, drawingTime);
} else {