Revert the changes that prevented touch on RecentsView during animation

The original bug that was solving seems to be fixed by other changes,
and this allows users to scroll, dismiss, etc on recent tasks before
fully reaching overview from an app.

Bug: 137487381
Change-Id: I28a708811bba3ce739ce261f19eb29558d8f0e7d
This commit is contained in:
Tony Wickham
2019-07-22 12:39:59 -07:00
parent 3fca6aaec2
commit b6841ac630
7 changed files with 8 additions and 46 deletions

View File

@@ -848,7 +848,7 @@ public abstract class PagedView<T extends View & PageIndicator> extends ViewGrou
*/
// Skip touch handling if there are no pages to swipe
if (getChildCount() <= 0 || shouldBlockGestures(ev)) return false;
if (getChildCount() <= 0) return false;
acquireVelocityTrackerAndAddMovement(ev);
@@ -1093,14 +1093,10 @@ public abstract class PagedView<T extends View & PageIndicator> extends ViewGrou
mAllowOverScroll = enable;
}
protected boolean shouldBlockGestures(MotionEvent ev) {
return false;
}
@Override
public boolean onTouchEvent(MotionEvent ev) {
// Skip touch handling if there are no pages to swipe
if (getChildCount() <= 0 || shouldBlockGestures(ev)) return false;
if (getChildCount() <= 0) return false;
acquireVelocityTrackerAndAddMovement(ev);