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

Commit 95621339 authored by Siyamed Sinir's avatar Siyamed Sinir
Browse files

Revert "Revert "Enable PrecomputedText for BiDi text""

This reverts commit 321140ad.

Reason for revert: we thought this CL caused b/119659731 but apparently it is not.

Change-Id: I5b52cc1facec77d6a0d844bcaac53e90c7ecd132
parent 321140ad
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -201,7 +201,7 @@ public class TextLine {
            }
        }

        mCharsValid = hasReplacement || hasTabs || directions != Layout.DIRS_ALL_LEFT_TO_RIGHT;
        mCharsValid = hasReplacement;

        if (mCharsValid) {
            if (mChars == null || mChars.length < mLen) {
@@ -815,7 +815,6 @@ public class TextLine {
        } else {
            final int delta = mStart;
            if (mComputed == null) {
                // TODO: Enable measured getRunAdvance for ReplacementSpan and RTL text.
                return wp.getRunAdvance(mText, delta + start, delta + end,
                        delta + contextStart, delta + contextEnd, runIsRtl, delta + offset);
            } else {