Merge "Fix: onExtractedDeleteText deletes unintended region." into nyc-dev
am: 3e540b95d7
* commit '3e540b95d751c19c846ee209a0ce425700fef203':
Fix: onExtractedDeleteText deletes unintended region.
This commit is contained in:
@@ -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