Unify tablet/phone workspace scrolling behavior

Bug: 5954015
This commit is contained in:
Michael Jurka
2012-05-06 15:55:19 -07:00
parent 8e21bc5411
commit 869390b6ab
2 changed files with 29 additions and 113 deletions
+3 -1
View File
@@ -627,7 +627,9 @@ public abstract class PagedView extends ViewGroup implements ViewGroup.OnHierarc
if (isScrollingIndicatorEnabled()) {
updateScrollingIndicator();
}
if (mFadeInAdjacentScreens) {
boolean isInOverscroll = mOverScrollX < 0 || mOverScrollX > mMaxScrollX;
if (mFadeInAdjacentScreens && !isInOverscroll) {
for (int i = 0; i < getChildCount(); i++) {
View child = getChildAt(i);
if (child != null) {