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

Commit dc848d5b authored by Winson Chung's avatar Winson Chung Committed by Android (Google) Code Review
Browse files

Merge "Remove jank tracker from back panel" into main

parents c45c841a 0f1654bc
Loading
Loading
Loading
Loading
+0 −11
Original line number Diff line number Diff line
@@ -371,7 +371,6 @@ internal constructor(
                // Receiving a CANCEL implies that something else intercepted
                // the gesture, i.e., the user did not cancel their gesture.
                // Therefore, disappear immediately, with minimum fanfare.
                interactionJankMonitor.cancel(CUJ_BACK_PANEL_ARROW)
                updateArrowState(GestureState.GONE)
                velocityTracker = null
            }
@@ -883,16 +882,6 @@ internal constructor(
        previousState = currentState
        currentState = newState

        // First, update the jank tracker
        when (currentState) {
            GestureState.ENTRY -> {
                interactionJankMonitor.cancel(CUJ_BACK_PANEL_ARROW)
                interactionJankMonitor.begin(mView, CUJ_BACK_PANEL_ARROW)
            }
            GestureState.GONE -> interactionJankMonitor.end(CUJ_BACK_PANEL_ARROW)
            else -> {}
        }

        when (currentState) {
            GestureState.CANCELLED -> {
                backCallback.cancelBack()