Fix editor update

This commit is contained in:
serso 2016-03-04 22:53:22 +01:00
parent b3543a5259
commit bf9555c038

View File

@ -108,13 +108,7 @@ public class EditorView extends EditTextCompat {
@Override
protected void onSelectionChanged(int start, int end) {
Check.isMainThread();
if (!editorChange) {
return;
}
// external text change => need to notify editor
super.onSelectionChanged(start, end);
// only if cursor moving, if selection do nothing
if (start != end) {
return;
}