Loading core/java/android/window/BackTouchTracker.java +10 −0 Original line number Diff line number Diff line Loading @@ -135,6 +135,16 @@ public class BackTouchTracker { mShouldUpdateStartLocation = false; } /** * Updates the swipe edge. This is useful when it's not clear yet which swipe edge the gesture * is performed on from the start of the gesture (for example trackpad back gestures). * * @param swipeEdge the updated swipeEdge value */ public void updateSwipeEdge(@BackEvent.SwipeEdge int swipeEdge) { mSwipeEdge = swipeEdge; } /** Resets the tracker. */ public void reset() { mInitTouchX = 0; Loading libs/WindowManager/Shell/src/com/android/wm/shell/back/BackAnimationController.java +5 −2 Original line number Diff line number Diff line Loading @@ -524,7 +524,7 @@ public class BackAnimationController implements RemoteCallable<BackAnimationCont onGestureStarted(touchX, touchY, swipeEdge); mShouldStartOnNextMoveEvent = false; } onMove(); onMove(swipeEdge); } else if (keyAction == MotionEvent.ACTION_UP || keyAction == MotionEvent.ACTION_CANCEL) { ProtoLog.d(WM_SHELL_BACK_PREVIEW, "Finishing gesture with event action: %d", keyAction); Loading Loading @@ -620,7 +620,10 @@ public class BackAnimationController implements RemoteCallable<BackAnimationCont } } private void onMove() { private void onMove(@BackEvent.SwipeEdge int swipeEdge) { if (predictiveBackDelayWmTransition() && mCurrentTracker.isActive()) { mCurrentTracker.updateSwipeEdge(swipeEdge); } if (!mBackGestureStarted || mBackNavigationInfo == null || mActiveCallback == null Loading Loading
core/java/android/window/BackTouchTracker.java +10 −0 Original line number Diff line number Diff line Loading @@ -135,6 +135,16 @@ public class BackTouchTracker { mShouldUpdateStartLocation = false; } /** * Updates the swipe edge. This is useful when it's not clear yet which swipe edge the gesture * is performed on from the start of the gesture (for example trackpad back gestures). * * @param swipeEdge the updated swipeEdge value */ public void updateSwipeEdge(@BackEvent.SwipeEdge int swipeEdge) { mSwipeEdge = swipeEdge; } /** Resets the tracker. */ public void reset() { mInitTouchX = 0; Loading
libs/WindowManager/Shell/src/com/android/wm/shell/back/BackAnimationController.java +5 −2 Original line number Diff line number Diff line Loading @@ -524,7 +524,7 @@ public class BackAnimationController implements RemoteCallable<BackAnimationCont onGestureStarted(touchX, touchY, swipeEdge); mShouldStartOnNextMoveEvent = false; } onMove(); onMove(swipeEdge); } else if (keyAction == MotionEvent.ACTION_UP || keyAction == MotionEvent.ACTION_CANCEL) { ProtoLog.d(WM_SHELL_BACK_PREVIEW, "Finishing gesture with event action: %d", keyAction); Loading Loading @@ -620,7 +620,10 @@ public class BackAnimationController implements RemoteCallable<BackAnimationCont } } private void onMove() { private void onMove(@BackEvent.SwipeEdge int swipeEdge) { if (predictiveBackDelayWmTransition() && mCurrentTracker.isActive()) { mCurrentTracker.updateSwipeEdge(swipeEdge); } if (!mBackGestureStarted || mBackNavigationInfo == null || mActiveCallback == null Loading