This commit is contained in:
Sergey Solovyev 2012-12-05 16:56:15 +04:00
parent c4d49c421c
commit 7abdf5f5e6

View File

@ -186,11 +186,15 @@ public class AndroidCalculatorEditorView extends EditText implements SharedPrefe
if (!viewStateChange) { if (!viewStateChange) {
// external text change => need to notify editor // external text change => need to notify editor
super.onSelectionChanged(selStart, selEnd); super.onSelectionChanged(selStart, selEnd);
if ( selStart == selEnd ) {
// only if cursor moving, if selection do nothing
Locator.getInstance().getEditor().setSelection(selStart); Locator.getInstance().getEditor().setSelection(selStart);
} }
} }
} }
} }
}
public void handleTextChange(Editable s) { public void handleTextChange(Editable s) {
if (viewLock != null) { if (viewLock != null) {