mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
* commit '9ad774d1f68bf3d2a4c38e5b4c3a2fa03e371eff': Close batch edit
This commit is contained in:
commit
45befb946f
@ -1843,10 +1843,15 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
|
||||
@Override
|
||||
public void pickSuggestionManually(final int index, final CharSequence suggestion,
|
||||
int x, int y) {
|
||||
final SuggestedWords suggestedWords = mSuggestionsView.getSuggestions();
|
||||
final InputConnection ic = getCurrentInputConnection();
|
||||
if (ic != null) ic.beginBatchEdit();
|
||||
if (null != ic) ic.beginBatchEdit();
|
||||
pickSuggestionManuallyWhileInBatchEdit(index, suggestion, x, y, ic);
|
||||
if (null != ic) ic.endBatchEdit();
|
||||
}
|
||||
|
||||
public void pickSuggestionManuallyWhileInBatchEdit(final int index,
|
||||
final CharSequence suggestion, final int x, final int y, final InputConnection ic) {
|
||||
final SuggestedWords suggestedWords = mSuggestionsView.getSuggestions();
|
||||
// If this is a punctuation picked from the suggestion strip, pass it to onCodeInput
|
||||
if (suggestion.length() == 1 && isShowingPunctuationList()) {
|
||||
// Word separators are suggested before the user inputs something.
|
||||
@ -1942,7 +1947,6 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
|
||||
mHandler.postUpdateSuggestions();
|
||||
}
|
||||
}
|
||||
if (null != ic) ic.endBatchEdit();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user