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

Commit 2fa16084 authored by Fabrice Di Meglio's avatar Fabrice Di Meglio Committed by Android (Google) Code Review
Browse files

Merge "Small optimization when getting the spans"

parents d81958e0 a2a035ef
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -212,6 +212,10 @@ import java.lang.reflect.Array;
        Object ret1 = null;

        for (int i = 0; i < spanCount; i++) {
            if (kind != null && !kind.isInstance(spans[i])) {
                continue;
            }

            int spanStart = data[i * COLUMNS + START];
            int spanEnd = data[i * COLUMNS + END];

@@ -231,10 +235,6 @@ import java.lang.reflect.Array;
                }
            }

            if (kind != null && !kind.isInstance(spans[i])) {
                continue;
            }

            if (count == 0) {
                ret1 = spans[i];
                count++;