Loading libs/WindowManager/Shell/src/com/android/wm/shell/back/BackAnimationController.java +6 −5 Original line number Diff line number Diff line Loading @@ -854,6 +854,11 @@ public class BackAnimationController implements RemoteCallable<BackAnimationCont dispatchOnBackInvoked(callback); } else { tryDispatchOnBackCancelled(callback); if (mTriggerLongSwipe) { sendEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_BACK, KeyEvent.FLAG_LONG_SWIPE); sendEvent(KeyEvent.ACTION_UP, KeyEvent.KEYCODE_BACK, KeyEvent.FLAG_LONG_SWIPE); } } } mRealCallbackInvoked = false; Loading @@ -872,11 +877,7 @@ public class BackAnimationController implements RemoteCallable<BackAnimationCont return; } if (mTriggerLongSwipe) { // Let key event handlers deal with back long swipe gesture sendEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_BACK, KeyEvent.FLAG_LONG_SWIPE); sendEvent(KeyEvent.ACTION_UP, KeyEvent.KEYCODE_BACK, KeyEvent.FLAG_LONG_SWIPE); finishBackNavigation(false); return; mCurrentTracker.setTriggerBack(false); } boolean triggerBack = activeTouchTracker.getTriggerBack(); ProtoLog.d(WM_SHELL_BACK_PREVIEW, "onGestureFinished() mTriggerBack == %s", triggerBack); Loading Loading
libs/WindowManager/Shell/src/com/android/wm/shell/back/BackAnimationController.java +6 −5 Original line number Diff line number Diff line Loading @@ -854,6 +854,11 @@ public class BackAnimationController implements RemoteCallable<BackAnimationCont dispatchOnBackInvoked(callback); } else { tryDispatchOnBackCancelled(callback); if (mTriggerLongSwipe) { sendEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_BACK, KeyEvent.FLAG_LONG_SWIPE); sendEvent(KeyEvent.ACTION_UP, KeyEvent.KEYCODE_BACK, KeyEvent.FLAG_LONG_SWIPE); } } } mRealCallbackInvoked = false; Loading @@ -872,11 +877,7 @@ public class BackAnimationController implements RemoteCallable<BackAnimationCont return; } if (mTriggerLongSwipe) { // Let key event handlers deal with back long swipe gesture sendEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_BACK, KeyEvent.FLAG_LONG_SWIPE); sendEvent(KeyEvent.ACTION_UP, KeyEvent.KEYCODE_BACK, KeyEvent.FLAG_LONG_SWIPE); finishBackNavigation(false); return; mCurrentTracker.setTriggerBack(false); } boolean triggerBack = activeTouchTracker.getTriggerBack(); ProtoLog.d(WM_SHELL_BACK_PREVIEW, "onGestureFinished() mTriggerBack == %s", triggerBack); Loading