Android: Always hide cursor/selection handle when the keyboard hides

Fixes #5233
This commit is contained in:
Olivier Goffart 2024-06-03 16:20:38 +02:00
parent 704cfff41f
commit a1e7f85892

View file

@ -409,6 +409,7 @@ public class SlintAndroidJavaHelper {
public void run() {
InputMethodManager imm = (InputMethodManager) mActivity.getSystemService(Context.INPUT_METHOD_SERVICE);
imm.hideSoftInputFromWindow(mInputView.getWindowToken(), 0);
mInputView.setCursorPos(0, 0, 0, 0, 0, 0);
}
});
}