mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 02:38:20 +00:00
Preventing workspace scroll over QSB area
Bug: 189792966 Test: Manual Change-Id: Ie2fe8e7fb6c80b9cc19d517fe828cf26f54f6f09
This commit is contained in:
@@ -1046,7 +1046,7 @@ public abstract class PagedView<T extends View & PageIndicator> extends ViewGrou
|
||||
/**
|
||||
* If being flinged and user touches the screen, initiate drag; otherwise don't.
|
||||
*/
|
||||
private void updateIsBeingDraggedOnTouchDown(MotionEvent ev) {
|
||||
protected void updateIsBeingDraggedOnTouchDown(MotionEvent ev) {
|
||||
// mScroller.isFinished should be false when being flinged.
|
||||
final int xDist = Math.abs(mScroller.getFinalX() - mScroller.getCurrX());
|
||||
final boolean finishedScrolling = (mScroller.isFinished() || xDist < mPageSlop / 3);
|
||||
|
||||
Reference in New Issue
Block a user