Merge "Reduce unnecessary layout passes" into ics-mr1

This commit is contained in:
Michael Jurka authored and Android (Google) Code Review committed 2011-11-10 15:02:00 -08:00
commit e6dcf26512
9 files changed
+47 -80

No files matched your search

+2 -2
View File
@@ -1790,7 +1790,7 @@ public abstract class PagedView extends ViewGroup {
updateScrollingIndicatorPosition();
cancelScrollingIndicatorAnimations();
if (immediately) {
mScrollIndicator.setVisibility(View.GONE);
mScrollIndicator.setVisibility(View.INVISIBLE);
mScrollIndicator.setAlpha(0f);
} else {
mScrollIndicatorAnimator = ObjectAnimator.ofFloat(mScrollIndicator, "alpha", 0f);
@@ -1804,7 +1804,7 @@ public abstract class PagedView extends ViewGroup {
@Override
public void onAnimationEnd(Animator animation) {
if (!cancelled) {
mScrollIndicator.setVisibility(View.GONE);
mScrollIndicator.setVisibility(View.INVISIBLE);
}
}
});