mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
[CM2] Update beginning-of-sentence suggestions
We need to update them after separator-space, and also when the user presses shift and they are displayed. Bug: 15554503 Change-Id: I5596163d5cd94d3cc5f6af10a1ab2cc74b6d4279
This commit is contained in:
parent
deccc23564
commit
c715d95f17
@ -408,6 +408,9 @@ public final class InputLogic {
|
|||||||
case Constants.CODE_SHIFT:
|
case Constants.CODE_SHIFT:
|
||||||
performRecapitalization(inputTransaction.mSettingsValues);
|
performRecapitalization(inputTransaction.mSettingsValues);
|
||||||
inputTransaction.requireShiftUpdate(InputTransaction.SHIFT_UPDATE_NOW);
|
inputTransaction.requireShiftUpdate(InputTransaction.SHIFT_UPDATE_NOW);
|
||||||
|
if (mSuggestedWords.mIsPrediction) {
|
||||||
|
inputTransaction.setRequiresUpdateSuggestions();
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case Constants.CODE_CAPSLOCK:
|
case Constants.CODE_CAPSLOCK:
|
||||||
// Note: Changing keyboard to shift lock state is handled in
|
// Note: Changing keyboard to shift lock state is handled in
|
||||||
@ -815,7 +818,7 @@ public final class InputLogic {
|
|||||||
}
|
}
|
||||||
|
|
||||||
startDoubleSpacePeriodCountdown(inputTransaction);
|
startDoubleSpacePeriodCountdown(inputTransaction);
|
||||||
if (wasComposingWord) {
|
if (wasComposingWord || mSuggestedWords.isEmpty()) {
|
||||||
inputTransaction.setRequiresUpdateSuggestions();
|
inputTransaction.setRequiresUpdateSuggestions();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user