[automerger] Fix crash during cursor moving on BiDi text am: 82c84d5fbb am: 12baaa2bc3 am: 99e3f649b4 am: a959ee227a
Change-Id: I7cb6623befc84f76e783b8800aa18ce28a8cc2b7
This commit is contained in:
@@ -1390,7 +1390,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];
|
||||
|
||||
Reference in New Issue
Block a user