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

Commit d553896c authored by Peter Kalauskas's avatar Peter Kalauskas Committed by Android (Google) Code Review
Browse files

Merge "Avoid NoSuchMethodError of List.removeLast() on 24Q2" into main

parents 16506fef 6c87df8b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -95,7 +95,7 @@ internal class TraceData : TraceStatus {
     */
    @PublishedApi
    internal fun endSpan(id: Int) {
        val v = slices.removeLast()
        val v = slices.removeAt(slices.lastIndex)
        if (v.id != id) {
            if (STRICT_MODE) {
                throw IllegalArgumentException(MISMATCHED_TRACE_ERROR_MESSAGE)