mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Disable "touch to correct words" when suggestion strip is off
bug: 3232408 Change-Id: Ic0d5f86288befcd5cf93cd86aaf8936929dbcdcc
This commit is contained in:
parent
c0007568d9
commit
383d6d8c81
@ -641,7 +641,7 @@ public class LatinIME extends InputMethodService
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void checkReCorrectionOnStart() {
|
private void checkReCorrectionOnStart() {
|
||||||
if (mReCorrectionEnabled && isPredictionOn()) {
|
if (mReCorrectionEnabled && isSuggestionShown() && isPredictionOn()) {
|
||||||
// First get the cursor position. This is required by setOldSuggestions(), so that
|
// First get the cursor position. This is required by setOldSuggestions(), so that
|
||||||
// it can pass the correct range to setComposingRegion(). At this point, we don't
|
// it can pass the correct range to setComposingRegion(). At this point, we don't
|
||||||
// have valid values for mLastSelectionStart/Stop because onUpdateSelection() has
|
// have valid values for mLastSelectionStart/Stop because onUpdateSelection() has
|
||||||
@ -745,7 +745,7 @@ public class LatinIME extends InputMethodService
|
|||||||
mLastSelectionStart = newSelStart;
|
mLastSelectionStart = newSelStart;
|
||||||
mLastSelectionEnd = newSelEnd;
|
mLastSelectionEnd = newSelEnd;
|
||||||
|
|
||||||
if (mReCorrectionEnabled) {
|
if (mReCorrectionEnabled && isSuggestionShown()) {
|
||||||
// Don't look for corrections if the keyboard is not visible
|
// Don't look for corrections if the keyboard is not visible
|
||||||
if (mKeyboardSwitcher.isInputViewShown()) {
|
if (mKeyboardSwitcher.isInputViewShown()) {
|
||||||
// Check if we should go in or out of correction mode.
|
// Check if we should go in or out of correction mode.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user