Notify when a back gesture is triggered in an exclusion area

Bug: 127848641
Test: adb shell setprop log.tag.UserEvent VERBOSE, touch in exclusion
      area

Change-Id: Icb6fcc631b8d1faebc592b51821c8e418a5d67da
This commit is contained in:
Winson Chung
2019-04-10 15:33:31 -07:00
parent e8c5311cb0
commit 51787a16b3

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) {