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

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

Merge "Fix crash when OverviewCommandHelper queue is cleared before callback response" into main

parents adccfa9a ef1bab89
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -362,11 +362,11 @@ class OverviewCommandHelper(
    /** Called when the command finishes execution. */
    private fun onCommandFinished(command: CommandInfo) {
        command.status = CommandStatus.COMPLETED
        if (commandQueue.first() !== command) {
        if (commandQueue.firstOrNull() !== command) {
            Log.d(
                TAG,
                "next task not scheduled. First pending command type " +
                    "is ${commandQueue.first()} - command type is: $command"
                    "is ${commandQueue.firstOrNull()} - command type is: $command"
            )
            return
        }