mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-06-18 23:20:54 +00:00
Clipboard suggestions (#647)
This commit is contained in:
parent
21124a5a45
commit
bdab98c2c9
17 changed files with 213 additions and 18 deletions
|
@ -1648,7 +1648,11 @@ public final class InputLogic {
|
|||
final SuggestedWords suggestedWords = holder.get(null,
|
||||
Constants.GET_SUGGESTED_WORDS_TIMEOUT);
|
||||
if (suggestedWords != null) {
|
||||
mSuggestionStripViewAccessor.showSuggestionStrip(suggestedWords);
|
||||
// Prefer clipboard suggestions (if available and setting is enabled) over beginning of sentence predictions.
|
||||
if (!(suggestedWords.mInputStyle == SuggestedWords.INPUT_STYLE_BEGINNING_OF_SENTENCE_PREDICTION
|
||||
&& mLatinIME.tryShowClipboardSuggestion())) {
|
||||
mSuggestionStripViewAccessor.showSuggestionStrip(suggestedWords);
|
||||
}
|
||||
}
|
||||
if (DebugFlags.DEBUG_ENABLED) {
|
||||
long runTimeMillis = System.currentTimeMillis() - startTimeMillis;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue