Fix crash on calling removeSelection with showing selection handlers am: 9582e15196
am: 6649ee972b
* commit '6649ee972b2bfbeca2d664cfd6629810ebbc7ac8':
Fix crash on calling removeSelection with showing selection handlers
This commit is contained in:
@@ -4253,10 +4253,14 @@ public class Editor {
|
|||||||
positionAtCursorOffset(offset, false);
|
positionAtCursorOffset(offset, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param offset Cursor offset. Must be in [-1, length].
|
||||||
|
* @param parentScrolled If the parent has been scrolled or not.
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
protected void positionAtCursorOffset(int offset, boolean parentScrolled) {
|
protected void positionAtCursorOffset(int offset, boolean parentScrolled) {
|
||||||
super.positionAtCursorOffset(offset, parentScrolled);
|
super.positionAtCursorOffset(offset, parentScrolled);
|
||||||
mInWord = !getWordIteratorWithText().isBoundary(offset);
|
mInWord = (offset != -1) && !getWordIteratorWithText().isBoundary(offset);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -4489,10 +4493,14 @@ public class Editor {
|
|||||||
positionAtCursorOffset(offset, false);
|
positionAtCursorOffset(offset, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param offset Cursor offset. Must be in [-1, length].
|
||||||
|
* @param parentScrolled If the parent has been scrolled or not.
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
protected void positionAtCursorOffset(int offset, boolean parentScrolled) {
|
protected void positionAtCursorOffset(int offset, boolean parentScrolled) {
|
||||||
super.positionAtCursorOffset(offset, parentScrolled);
|
super.positionAtCursorOffset(offset, parentScrolled);
|
||||||
mInWord = !getWordIteratorWithText().isBoundary(offset);
|
mInWord = (offset != -1) && !getWordIteratorWithText().isBoundary(offset);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user