parent
37f81cd6e9
commit
6c0349012e
|
@ -2299,7 +2299,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
|
||||||
final InputConnection ic = getCurrentInputConnection();
|
final InputConnection ic = getCurrentInputConnection();
|
||||||
if (null != ic) {
|
if (null != ic) {
|
||||||
final CharSequence lastChar = ic.getTextBeforeCursor(1, 0);
|
final CharSequence lastChar = ic.getTextBeforeCursor(1, 0);
|
||||||
if (lastChar.length() > 0 && Character.isHighSurrogate(lastChar.charAt(0))) {
|
if (!TextUtils.isEmpty(lastChar) && Character.isHighSurrogate(lastChar.charAt(0))) {
|
||||||
ic.deleteSurroundingText(1, 0);
|
ic.deleteSurroundingText(1, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue