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

Commit 8caff9fd authored by Mihai Popa's avatar Mihai Popa Committed by android-build-merger
Browse files

Merge "Fix crash during cursor moving on BiDi text" into pi-dev

am: f052c26a

Change-Id: I18123e7e08220b1483df6fd32ec0eecd68bb38de
parents 66dcecd4 f052c26a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1583,7 +1583,8 @@ public abstract class Layout {
        }

        float get(final int offset) {
            if (mHorizontals == null) {
            if (mHorizontals == null || offset < mLineStartOffset
                    || offset >= mLineStartOffset + mHorizontals.length) {
                return getHorizontal(offset, mPrimary);
            } else {
                return mHorizontals[offset - mLineStartOffset];