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

Commit 3544e6fa authored by Raph Levien's avatar Raph Levien Committed by Android (Google) Code Review
Browse files

Merge "Don't use context in measureText(char[])"

parents 7891a2ef 80b485da
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -577,7 +577,8 @@ public:

        Layout layout;
        TypefaceImpl* typeface = getNativeTypeface(env, jpaint);
        MinikinUtils::doLayout(&layout, paint, bidiFlags, typeface, textArray, index, count, textLength);
        MinikinUtils::doLayout(&layout, paint, bidiFlags, typeface, textArray + index, 0, count,
                count);
        result = layout.getAdvance();
        env->ReleaseCharArrayElements(text, const_cast<jchar*>(textArray), JNI_ABORT);
        return result;