Merge "Fix: onExtractedDeleteText deletes unintended region." into nyc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
3e540b95d7
@@ -2269,8 +2269,9 @@ public class InputMethodService extends AbstractInputMethodService {
|
||||
public void onExtractedDeleteText(int start, int end) {
|
||||
InputConnection conn = getCurrentInputConnection();
|
||||
if (conn != null) {
|
||||
conn.finishComposingText();
|
||||
conn.setSelection(start, start);
|
||||
conn.deleteSurroundingText(0, end-start);
|
||||
conn.deleteSurroundingText(0, end - start);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user