Merge changes from topic "a11y-minus-one" into ub-launcher3-qt-future-dev

am: ff4977d42d

Change-Id: I5c565a2d67274240dcd06e41ad03564526d486ce
This commit is contained in:
Pinyao Ting
2019-09-24 14:58:53 -07:00
committed by android-build-merger
5 changed files with 45 additions and 12 deletions
+7
View File
@@ -1037,6 +1037,13 @@ public class Workspace extends PagedView<WorkspacePageIndicator>
}
}
@Override
protected boolean onOverscroll(int amount) {
// Enforce overscroll on -1 direction
if ((amount > 0 && !mIsRtl) || (amount < 0 && mIsRtl)) return false;
return super.onOverscroll(amount);
}
@Override
protected boolean shouldFlingForVelocity(int velocityX) {
// When the overlay is moving, the fling or settle transition is controlled by the overlay.