Fix all apps tab fling detection

It is a regression when we changed from ViewPager to PagedView.
Unlike ViewPager, PagedView does not take "yDiff" into account
when determining should it intercept its child MotionEvent.

Override determineScrollingStart, just like what we did in Workspace

Change-Id: I25f7415c45c370629558d944f59bf95c741b9319
FIX: 73878167
This commit is contained in:
Tony Mak
2018-02-27 17:19:34 +00:00
parent 7eadfc4f15
commit 2e564400ba
2 changed files with 40 additions and 1 deletions

View File

@@ -1892,6 +1892,14 @@ public abstract class PagedView<T extends View & PageIndicator> extends ViewGrou
getNextPage() + 1, getChildCount());
}
protected float getDownMotionX() {
return mDownMotionX;
}
protected float getDownMotionY() {
return mDownMotionY;
}
@Override
public boolean onHoverEvent(android.view.MotionEvent event) {
return true;