changes
This commit is contained in:
parent
c4d49c421c
commit
7abdf5f5e6
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user