Loading quickstep/src/com/android/quickstep/inputconsumers/ProgressDelegateInputConsumer.java +5 −3 Original line number Diff line number Diff line Loading @@ -20,6 +20,7 @@ import static com.android.launcher3.touch.BaseSwipeDetector.calculateDuration; import static com.android.launcher3.touch.SingleAxisSwipeDetector.DIRECTION_POSITIVE; import static com.android.launcher3.touch.SingleAxisSwipeDetector.VERTICAL; import static com.android.quickstep.MultiStateCallback.DEBUG_STATES; import static com.android.quickstep.OverviewComponentObserver.startHomeIntentSafely; import static com.android.quickstep.util.ActiveGestureLog.INTENT_EXTRA_LOG_TRACE_ID; import android.animation.ObjectAnimator; Loading Loading @@ -102,8 +103,7 @@ public class ProgressDelegateInputConsumer implements InputConsumer, mStateCallback = new MultiStateCallback(STATE_NAMES); mStateCallback.runOnceAtState(STATE_TARGET_RECEIVED | STATE_HANDLER_INVALIDATED, this::endRemoteAnimation); mStateCallback.runOnceAtState(STATE_TARGET_RECEIVED | STATE_FLING_FINISHED, this::onFlingFinished); mStateCallback.runOnceAtState(STATE_FLING_FINISHED, this::onFlingFinished); mSwipeDetector = new SingleAxisSwipeDetector(mContext, this, VERTICAL); mSwipeDetector.setDetectableScrollConditions(DIRECTION_POSITIVE, false); Loading Loading @@ -159,10 +159,12 @@ public class ProgressDelegateInputConsumer implements InputConsumer, } private void onFlingFinished() { if (mRecentsAnimationController != null) { boolean endToRecents = mFlingEndsOnHome == null ? true : mFlingEndsOnHome; if (mRecentsAnimationController != null) { mRecentsAnimationController.finishController(endToRecents /* toRecents */, null /* callback */, false /* sendUserLeaveHint */); } else if (endToRecents) { startHomeIntentSafely(mContext, null); } } Loading Loading
quickstep/src/com/android/quickstep/inputconsumers/ProgressDelegateInputConsumer.java +5 −3 Original line number Diff line number Diff line Loading @@ -20,6 +20,7 @@ import static com.android.launcher3.touch.BaseSwipeDetector.calculateDuration; import static com.android.launcher3.touch.SingleAxisSwipeDetector.DIRECTION_POSITIVE; import static com.android.launcher3.touch.SingleAxisSwipeDetector.VERTICAL; import static com.android.quickstep.MultiStateCallback.DEBUG_STATES; import static com.android.quickstep.OverviewComponentObserver.startHomeIntentSafely; import static com.android.quickstep.util.ActiveGestureLog.INTENT_EXTRA_LOG_TRACE_ID; import android.animation.ObjectAnimator; Loading Loading @@ -102,8 +103,7 @@ public class ProgressDelegateInputConsumer implements InputConsumer, mStateCallback = new MultiStateCallback(STATE_NAMES); mStateCallback.runOnceAtState(STATE_TARGET_RECEIVED | STATE_HANDLER_INVALIDATED, this::endRemoteAnimation); mStateCallback.runOnceAtState(STATE_TARGET_RECEIVED | STATE_FLING_FINISHED, this::onFlingFinished); mStateCallback.runOnceAtState(STATE_FLING_FINISHED, this::onFlingFinished); mSwipeDetector = new SingleAxisSwipeDetector(mContext, this, VERTICAL); mSwipeDetector.setDetectableScrollConditions(DIRECTION_POSITIVE, false); Loading Loading @@ -159,10 +159,12 @@ public class ProgressDelegateInputConsumer implements InputConsumer, } private void onFlingFinished() { if (mRecentsAnimationController != null) { boolean endToRecents = mFlingEndsOnHome == null ? true : mFlingEndsOnHome; if (mRecentsAnimationController != null) { mRecentsAnimationController.finishController(endToRecents /* toRecents */, null /* callback */, false /* sendUserLeaveHint */); } else if (endToRecents) { startHomeIntentSafely(mContext, null); } } Loading