Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6c11adfa authored by Rahul Banerjee's avatar Rahul Banerjee Committed by Android (Google) Code Review
Browse files

Merge "Actually trigger back action on Back Arrow fling" into tm-qpr-dev

parents 61852ac6 15ebdf1e
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -510,7 +510,6 @@ class BackPanelController private constructor(
    private fun playCommitBackAnimation() {
        // Check if we should vibrate again
        if (previousState != GestureState.FLUNG) {
            backCallback.triggerBack()
            velocityTracker!!.computeCurrentVelocity(1000)
            val isSlow = abs(velocityTracker!!.xVelocity) < 500
            val hasNotVibratedRecently =
@@ -519,6 +518,10 @@ class BackPanelController private constructor(
                vibratorHelper.vibrate(VibrationEffect.EFFECT_CLICK)
            }
        }
        // Dispatch the actual back trigger
        if (DEBUG) Log.d(TAG, "playCommitBackAnimation() invoked triggerBack() on backCallback")
        backCallback.triggerBack()

        playAnimation(setGoneEndListener)
    }