Fix number keys changing keyboard state
This commit is contained in:
1 parent
af1a05003a
commit
d8a8a94008
1 file changed
+2
-1
+2
-1
@@ -125,7 +125,8 @@ public class TouchCharInput extends androidx.appcompat.widget.AppCompatEditText
|
||||
public void clear(){
|
||||
isDoingInternalChanges = true;
|
||||
//Braille space, doesn't trigger keyboard auto-complete
|
||||
setText("\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800");
|
||||
//replacing directly the text without though setText avoids notifying changes
|
||||
getText().replace(0, getText().length(),"\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800");
|
||||
setSelection(5);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user