mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Fix issue where mOriginatesFromTransformerLM gets lost
This commit is contained in:
parent
1d4b07566c
commit
3aecbd5ada
@ -440,9 +440,13 @@ public final class Suggest {
|
|||||||
for (int i = quotesToAppend - 1; i >= 0; --i) {
|
for (int i = quotesToAppend - 1; i >= 0; --i) {
|
||||||
sb.appendCodePoint(Constants.CODE_SINGLE_QUOTE);
|
sb.appendCodePoint(Constants.CODE_SINGLE_QUOTE);
|
||||||
}
|
}
|
||||||
return new SuggestedWordInfo(sb.toString(), wordInfo.mPrevWordsContext,
|
SuggestedWordInfo result = new SuggestedWordInfo(sb.toString(), wordInfo.mPrevWordsContext,
|
||||||
wordInfo.mScore, wordInfo.mKindAndFlags,
|
wordInfo.mScore, wordInfo.mKindAndFlags,
|
||||||
wordInfo.mSourceDict, wordInfo.mIndexOfTouchPointOfSecondWord,
|
wordInfo.mSourceDict, wordInfo.mIndexOfTouchPointOfSecondWord,
|
||||||
wordInfo.mAutoCommitFirstWordConfidence);
|
wordInfo.mAutoCommitFirstWordConfidence);
|
||||||
|
|
||||||
|
result.mOriginatesFromTransformerLM = wordInfo.mOriginatesFromTransformerLM;
|
||||||
|
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user