The InputConnection class does not work correctly on Huawei phones

83 Views Asked by At

When I press a button on the keyboard, the current visible text inside the textview is replaced by the last key pressed (and not added as I expected). That is, if I try to enter "12" when I press "1", everything will be fine, when I press "2", the old character "1" will be replaced by "2". The problem occurs only on Huawei smartphones, everything works fine on the rest. I add the text as follows: inputConnection.commitText(inputedCharacter.toString(), 1). What's wrong with Huawei ?

0

There are 0 best solutions below