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

Commit 042534c3 authored by Fredrik Roubert's avatar Fredrik Roubert Committed by android-build-merger
Browse files

Update JNI code in preparation for ICU 59 switching to C++11 char16_t.

am: 253e5152

Change-Id: I064ae78ad17bef67d6e90c7ce0aed4e9693c9ac6
parents be25a824 253e5152
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -42,7 +42,7 @@ static jint runBidi(JNIEnv* env, jobject obj, jint dir, jcharArray chsArray,
            // Set callbacks to override bidi classes of new emoji
            ubidi_setClassCallback(
                    bidi, minikin::emojiBidiOverride, nullptr, nullptr, nullptr, &status);
            ubidi_setPara(bidi, chs, n, dir, NULL, &status);
            ubidi_setPara(bidi, reinterpret_cast<const UChar*>(chs), n, dir, NULL, &status);
            if (U_SUCCESS(status)) {
                for (int i = 0; i < n; ++i) {
                  info[i] = ubidi_getLevelAt(bidi, i);