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

View File

@ -186,7 +186,11 @@ 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);
Locator.getInstance().getEditor().setSelection(selStart);
if ( selStart == selEnd ) {
// only if cursor moving, if selection do nothing
Locator.getInstance().getEditor().setSelection(selStart);
}
} }
} }
} }