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

This commit is contained in:
Winson Chung
2012-01-30 17:53:44 -08:00
committed by Android (Google) Code Review
2 changed files with 3 additions and 3 deletions
+2 -2
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 {
+1 -1
View File
@@ -1660,7 +1660,7 @@ public class Workspace extends SmoothPagedView
rotate.setInterpolator(new DecelerateInterpolator(2.0f));
rotate.addUpdateListener(new LauncherAnimatorUpdateListener() {
public void onAnimationUpdate(float a, float b) {
cl.setRotationY(a * 0f + b * 1f);
cl.setRotationY(a * mOldRotationYs[i] + b * mNewRotationYs[i]);
}
});
anim.play(rotate);