mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-04-21 14:49:10 +00:00
fix url detction ignoring no-suggestions request, fixes #180
This commit is contained in:
parent
d8c80b72ff
commit
a330e9dd17
1 changed files with 3 additions and 2 deletions
|
@ -888,8 +888,9 @@ public final class InputLogic {
|
||||||
boolean isComposingWord = mWordComposer.isComposingWord();
|
boolean isComposingWord = mWordComposer.isComposingWord();
|
||||||
|
|
||||||
// if we continue directly after a sometimesWordConnector, restart suggestions for the whole word
|
// if we continue directly after a sometimesWordConnector, restart suggestions for the whole word
|
||||||
// (only with URL detection enabled)
|
// (only with URL detection and suggestions enabled)
|
||||||
if (settingsValues.mUrlDetectionEnabled && !isComposingWord && SpaceState.NONE == inputTransaction.getMSpaceState()
|
if (settingsValues.mUrlDetectionEnabled && settingsValues.needsToLookupSuggestions()
|
||||||
|
&& !isComposingWord && SpaceState.NONE == inputTransaction.getMSpaceState()
|
||||||
&& settingsValues.mSpacingAndPunctuations.isSometimesWordConnector(mConnection.getCodePointBeforeCursor())
|
&& settingsValues.mSpacingAndPunctuations.isSometimesWordConnector(mConnection.getCodePointBeforeCursor())
|
||||||
// but not if there are two consecutive sometimesWordConnectors (e.g. "...bla")
|
// but not if there are two consecutive sometimesWordConnectors (e.g. "...bla")
|
||||||
&& !settingsValues.mSpacingAndPunctuations.isSometimesWordConnector(mConnection.getCharBeforeBeforeCursor())
|
&& !settingsValues.mSpacingAndPunctuations.isSometimesWordConnector(mConnection.getCharBeforeBeforeCursor())
|
||||||
|
|
Loading…
Add table
Reference in a new issue