summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/com/android/launcher3/Workspace.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/launcher3/Workspace.java b/src/com/android/launcher3/Workspace.java
index 99c8ec0ae..c99a0a51a 100644
--- a/src/com/android/launcher3/Workspace.java
+++ b/src/com/android/launcher3/Workspace.java
@@ -1539,8 +1539,8 @@ public class Workspace extends SmoothPagedView
boolean isOnLastPageBeforeCustomContent = false;
if (hasCustomContent()) {
int customContentWidth = mWorkspaceScreens.get(CUSTOM_CONTENT_SCREEN_ID).getMeasuredWidth();
- isOnLastPageBeforeCustomContent = (mOverScrollX < customContentWidth && (!hasCustomContent() || isLayoutRtl())) ||
- (mOverScrollX > mMaxScrollX - customContentWidth && (!hasCustomContent() || !isLayoutRtl()));
+ isOnLastPageBeforeCustomContent = (mOverScrollX < customContentWidth && !isLayoutRtl()) ||
+ ((mOverScrollX > mMaxScrollX - customContentWidth) && isLayoutRtl());
}
mUseTransitionEffect = !isOnLastPageBeforeCustomContent && mState == State.NORMAL && !mIsSwitchingState;