Update editing state in InputConnectionAdaptor.setSelection (flutter/engine#17652)

The BaseInputConnection superclass does not call endBatchEdit
in setSelection and therefore does not implicitly cause
InputConnectionAdaptor to send a state update.

Some input modes such as numeric keypads will not function without
these updates.
This commit is contained in:
Jason Simmons
2020-04-11 17:29:50 -07:00
committed by GitHub
parent 7e803b1be0
commit 2105db78eb

View File

@@ -287,6 +287,7 @@ class InputConnectionAdaptor extends BaseInputConnection {
public boolean setSelection(int start, int end) {
boolean result = super.setSelection(start, end);
markDirty();
updateEditingState();
return result;
}