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

Commit 5f9c7662 authored by Rahul Banerjee's avatar Rahul Banerjee Committed by Automerger Merge Worker
Browse files

Merge "Actually trigger back action on Back Arrow fling" into tm-qpr-dev am: 6c11adfa

parents 9c663120 6c11adfa
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)
    }