Skip to content
Snippets Groups Projects
Commit 4498d9b0 authored by Aleksandras Kostarevas's avatar Aleksandras Kostarevas
Browse files

Reset input state on restart when not touching word to fix Google Messages bug

parent efc90a9e
No related branches found
No related tags found
No related merge requests found
......@@ -1897,6 +1897,15 @@ public final class InputLogic {
final int expectedCursorPosition = mConnection.getExpectedSelectionStart();
if (!mConnection.isCursorTouchingWord(settingsValues.mSpacingAndPunctuations,
true /* checkTextAfter */)) {
//Log.d(TAG, "Reset input state");
resetEntireInputState(
mConnection.getExpectedSelectionStart(),
mConnection.getExpectedSelectionEnd(),
true
);
//Log.d(TAG, "ComposingText1 [" + mConnection.getComposingTextForDebug() + "] , TypedWord [" + mWordComposer.getTypedWord() + "]");
// Show predictions.
mWordComposer.setCapitalizedModeAtStartComposingTime(WordComposer.CAPS_MODE_OFF);
mLatinIMELegacy.mHandler.postUpdateSuggestionStrip(SuggestedWords.INPUT_STYLE_RECORRECTION);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment