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

Commit 6224e238 authored by Seigo Nonaka's avatar Seigo Nonaka
Browse files

Enable PrecomputedText for BiDi text

Bug: 119312268
Test: atest CtsTextTestCases
Test: atest CtsWidgetTestCases
Test: atest CtsGraphicsTestCases
Change-Id: Ifddf5a35642a22cbb1665fce65c467e6b21bfea6
parent 1e7ef645
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 {