mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-06-18 23:20:54 +00:00
reload text on selection updates even if selection is as expected
if composing region was changed e.g. KDE Connect removes composing region after entering a letter, and we should be able to deal with it this is not really a good solution, as it will reload the suggestions, which flashes the underline and has noticeable performance impact fixes #1141
This commit is contained in:
parent
d08afcd279
commit
d3bd97a104
3 changed files with 13 additions and 6 deletions
|
@ -346,9 +346,9 @@ public final class InputLogic {
|
|||
* @param settingsValues the current values of the settings.
|
||||
* @return whether the cursor has moved as a result of user interaction.
|
||||
*/
|
||||
public boolean onUpdateSelection(final int oldSelStart, final int oldSelEnd,
|
||||
final int newSelStart, final int newSelEnd, final SettingsValues settingsValues) {
|
||||
if (mConnection.isBelatedExpectedUpdate(oldSelStart, newSelStart, oldSelEnd, newSelEnd)) {
|
||||
public boolean onUpdateSelection(final int oldSelStart, final int oldSelEnd, final int newSelStart,
|
||||
final int newSelEnd, final int composingSpanStart, final int composingSpanEnd, final SettingsValues settingsValues) {
|
||||
if (mConnection.isBelatedExpectedUpdate(oldSelStart, newSelStart, oldSelEnd, newSelEnd, composingSpanStart, composingSpanEnd)) {
|
||||
return false;
|
||||
}
|
||||
// TODO: the following is probably better done in resetEntireInputState().
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue