Loading java/src/com/android/inputmethod/latin/LatinIME.java +4 −3 Original line number Diff line number Diff line Loading @@ -789,7 +789,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen if (mSuggestionStripView != null) { // This will set the punctuation suggestions if next word suggestion is off; // otherwise it will clear the suggestion strip. setPunctuationSuggestions(); setNeutralSuggestionStrip(); } // Sometimes, while rotating, for some reason the framework tells the app we are not Loading Loading @@ -1561,11 +1561,12 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen } // TODO[IL]: Define a clean interface for this public void setPunctuationSuggestions() { // This will show either an empty suggestion strip (if prediction is enabled) or // punctuation suggestions (if it's disabled). public void setNeutralSuggestionStrip() { final SettingsValues currentSettings = mSettings.getCurrent(); if (currentSettings.mBigramPredictionEnabled) { setSuggestedWords(SuggestedWords.EMPTY); setAutoCorrectionIndicator(false); } else { setSuggestedWords(currentSettings.mSpacingAndPunctuations.mSuggestPuncList); } Loading java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java +2 −2 Original line number Diff line number Diff line Loading @@ -722,7 +722,7 @@ public final class InputLogic { // Set punctuation right away. onUpdateSelection will fire but tests whether it is // already displayed or not, so it's okay. mLatinIME.setPunctuationSuggestions(); mLatinIME.setNeutralSuggestionStrip(); } keyboardSwitcher.updateShiftState(); Loading Loading @@ -1075,7 +1075,7 @@ public final class InputLogic { } if (!mWordComposer.isComposingWord() && !settingsValues.mBigramPredictionEnabled) { mLatinIME.setPunctuationSuggestions(); mLatinIME.setNeutralSuggestionStrip(); return; } Loading Loading
java/src/com/android/inputmethod/latin/LatinIME.java +4 −3 Original line number Diff line number Diff line Loading @@ -789,7 +789,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen if (mSuggestionStripView != null) { // This will set the punctuation suggestions if next word suggestion is off; // otherwise it will clear the suggestion strip. setPunctuationSuggestions(); setNeutralSuggestionStrip(); } // Sometimes, while rotating, for some reason the framework tells the app we are not Loading Loading @@ -1561,11 +1561,12 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen } // TODO[IL]: Define a clean interface for this public void setPunctuationSuggestions() { // This will show either an empty suggestion strip (if prediction is enabled) or // punctuation suggestions (if it's disabled). public void setNeutralSuggestionStrip() { final SettingsValues currentSettings = mSettings.getCurrent(); if (currentSettings.mBigramPredictionEnabled) { setSuggestedWords(SuggestedWords.EMPTY); setAutoCorrectionIndicator(false); } else { setSuggestedWords(currentSettings.mSpacingAndPunctuations.mSuggestPuncList); } Loading
java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java +2 −2 Original line number Diff line number Diff line Loading @@ -722,7 +722,7 @@ public final class InputLogic { // Set punctuation right away. onUpdateSelection will fire but tests whether it is // already displayed or not, so it's okay. mLatinIME.setPunctuationSuggestions(); mLatinIME.setNeutralSuggestionStrip(); } keyboardSwitcher.updateShiftState(); Loading Loading @@ -1075,7 +1075,7 @@ public final class InputLogic { } if (!mWordComposer.isComposingWord() && !settingsValues.mBigramPredictionEnabled) { mLatinIME.setPunctuationSuggestions(); mLatinIME.setNeutralSuggestionStrip(); return; } Loading