Merge "Notify when a back gesture is triggered in an exclusion area" into qt-dev

am: 1d0fe85747

Change-Id: I63b7cf32864709da5991a01c7dff63de00c58738
This commit is contained in:
Winson Chung
2019-04-11 23:43:41 -07:00
committed by android-build-merger

View File

@@ -271,7 +271,12 @@ public class EdgeBackGestureHandler implements DisplayListener {
if (x > mEdgeWidth && x < (mDisplaySize.x - mEdgeWidth)) {
return false;
}
return !mExcludeRegion.contains(x, y);
boolean isInExcludedRegion = mExcludeRegion.contains(x, y);
if (isInExcludedRegion) {
mOverviewProxyService.notifyBackAction(false /* completed */, -1, -1,
false /* isButton */, !mIsOnLeftEdge);
}
return !isInExcludedRegion;
}
private void onMotionEvent(MotionEvent ev) {