Loading core/java/com/android/internal/policy/DecorView.java +13 −25 Original line number Diff line number Diff line Loading @@ -455,20 +455,7 @@ public class DecorView extends FrameLayout implements RootViewSurfaceTaker, Wind } viewRootImpl.getOnBackInvokedDispatcher().onMotionEvent(ev); // Intercept touch if back gesture is in progress. boolean isBackGestureInProgress = viewRootImpl.getOnBackInvokedDispatcher() .isBackGestureInProgress(); if (!isBackGestureInProgress && mWearGestureInterceptionDetector != null) { boolean wasIntercepting = mWearGestureInterceptionDetector.isIntercepting(); boolean intercepting = mWearGestureInterceptionDetector.onInterceptTouchEvent(ev); if (wasIntercepting != intercepting) { viewRootImpl.updateDecorViewGestureInterception(intercepting); } if (intercepting) { isBackGestureInProgress = true; } } if (!isBackGestureInProgress) { if (!viewRootImpl.getOnBackInvokedDispatcher().isBackGestureInProgress()) { return false; } // Intercept touch if back gesture is in progress. Loading Loading @@ -559,8 +546,8 @@ public class DecorView extends FrameLayout implements RootViewSurfaceTaker, Wind } } if (!interceptMotionFromMoveToCancel()) { ViewRootImpl viewRootImpl = getViewRootImpl(); if (!interceptMotionFromMoveToCancel()) { if (viewRootImpl != null) { viewRootImpl.getOnBackInvokedDispatcher().onMotionEvent(event); // Intercept touch if back gesture is in progress. Loading @@ -568,6 +555,8 @@ public class DecorView extends FrameLayout implements RootViewSurfaceTaker, Wind return true; } } } if (viewRootImpl != null && mWearGestureInterceptionDetector != null) { boolean wasIntercepting = mWearGestureInterceptionDetector.isIntercepting(); boolean intercepting = mWearGestureInterceptionDetector Loading @@ -579,7 +568,6 @@ public class DecorView extends FrameLayout implements RootViewSurfaceTaker, Wind return true; } } } if (!SWEEP_OPEN_MENU) { return false; Loading Loading
core/java/com/android/internal/policy/DecorView.java +13 −25 Original line number Diff line number Diff line Loading @@ -455,20 +455,7 @@ public class DecorView extends FrameLayout implements RootViewSurfaceTaker, Wind } viewRootImpl.getOnBackInvokedDispatcher().onMotionEvent(ev); // Intercept touch if back gesture is in progress. boolean isBackGestureInProgress = viewRootImpl.getOnBackInvokedDispatcher() .isBackGestureInProgress(); if (!isBackGestureInProgress && mWearGestureInterceptionDetector != null) { boolean wasIntercepting = mWearGestureInterceptionDetector.isIntercepting(); boolean intercepting = mWearGestureInterceptionDetector.onInterceptTouchEvent(ev); if (wasIntercepting != intercepting) { viewRootImpl.updateDecorViewGestureInterception(intercepting); } if (intercepting) { isBackGestureInProgress = true; } } if (!isBackGestureInProgress) { if (!viewRootImpl.getOnBackInvokedDispatcher().isBackGestureInProgress()) { return false; } // Intercept touch if back gesture is in progress. Loading Loading @@ -559,8 +546,8 @@ public class DecorView extends FrameLayout implements RootViewSurfaceTaker, Wind } } if (!interceptMotionFromMoveToCancel()) { ViewRootImpl viewRootImpl = getViewRootImpl(); if (!interceptMotionFromMoveToCancel()) { if (viewRootImpl != null) { viewRootImpl.getOnBackInvokedDispatcher().onMotionEvent(event); // Intercept touch if back gesture is in progress. Loading @@ -568,6 +555,8 @@ public class DecorView extends FrameLayout implements RootViewSurfaceTaker, Wind return true; } } } if (viewRootImpl != null && mWearGestureInterceptionDetector != null) { boolean wasIntercepting = mWearGestureInterceptionDetector.isIntercepting(); boolean intercepting = mWearGestureInterceptionDetector Loading @@ -579,7 +568,6 @@ public class DecorView extends FrameLayout implements RootViewSurfaceTaker, Wind return true; } } } if (!SWEEP_OPEN_MENU) { return false; Loading