Fix editor update
This commit is contained in:
parent
b3543a5259
commit
bf9555c038
@ -108,13 +108,7 @@ public class EditorView extends EditTextCompat {
|
|||||||
@Override
|
@Override
|
||||||
protected void onSelectionChanged(int start, int end) {
|
protected void onSelectionChanged(int start, int end) {
|
||||||
Check.isMainThread();
|
Check.isMainThread();
|
||||||
if (!editorChange) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
// external text change => need to notify editor
|
|
||||||
super.onSelectionChanged(start, end);
|
super.onSelectionChanged(start, end);
|
||||||
|
|
||||||
// only if cursor moving, if selection do nothing
|
|
||||||
if (start != end) {
|
if (start != end) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user