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

Commit 4394cc77 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix Square Recent button unresponsiveness" into main

parents 6d508c70 dfd69242
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -96,10 +96,10 @@ class OverviewCommandHelper(

    fun canStartHomeSafely(): Boolean = commandQueue.isEmpty() || commandQueue.first().type == HOME

    /** Clear pending commands from the queue */
    /** Clear pending or completed commands from the queue */
    fun clearPendingCommands() {
        Log.d(TAG, "clearing pending commands: $commandQueue")
        commandQueue.clear()
        commandQueue.removeAll { it.status != CommandStatus.PROCESSING }
    }

    /**
+4 −1
Original line number Diff line number Diff line
@@ -1042,7 +1042,10 @@ constructor(
                ActiveGestureErrorDetector.GestureEvent.EXPECTING_TASK_APPEARED
            )
            val recentsView = recentsView ?: return null
            if (recentsView.runningTaskViewId != -1) {
            if (
                recentsView.runningTaskViewId != -1 &&
                    recentsView.mRecentsAnimationController != null
            ) {
                recentsView.onTaskLaunchedInLiveTileMode()

                // Return a fresh callback in the live tile case, so that it's not accidentally