Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 18d7291c authored by Tom Ouyang's avatar Tom Ouyang Committed by Android Git Automerger
Browse files

am 89f90702: Do not learn from cursor corrections when autocorrection is disabled.

* commit '89f90702':
  Do not learn from cursor corrections when autocorrection is disabled.
parents e991c342 89f90702
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -398,9 +398,8 @@ public final class InputLogic {
            if (!TextUtils.isEmpty(mWordBeingCorrectedByCursor)) {
                final int timeStampInSeconds = (int)TimeUnit.MILLISECONDS.toSeconds(
                        System.currentTimeMillis());
                mDictionaryFacilitator.addToUserHistory(mWordBeingCorrectedByCursor, false,
                        NgramContext.EMPTY_PREV_WORDS_INFO, timeStampInSeconds,
                        settingsValues.mBlockPotentiallyOffensive);
                performAdditionToUserHistoryDictionary(settingsValues, mWordBeingCorrectedByCursor,
                        NgramContext.EMPTY_PREV_WORDS_INFO);
            }
        } else {
            // resetEntireInputState calls resetCachesUponCursorMove, but forcing the