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

Commit ea727b6b authored by Mohammadinamul Sheik's avatar Mohammadinamul Sheik
Browse files

Carry over the mMaxPreWordCount when creating the new NgramContext

Change-Id: Iaba2e4b356486b60d550f10121695ef46e5e75da
parent 775d3a8d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -128,7 +128,7 @@ public class NgramContext {
        final WordInfo[] prevWordsInfo = new WordInfo[nextPrevWordCount];
        prevWordsInfo[0] = wordInfo;
        System.arraycopy(mPrevWordsInfo, 0, prevWordsInfo, 1, nextPrevWordCount - 1);
        return new NgramContext(prevWordsInfo);
        return new NgramContext(mMaxPrevWordCount, prevWordsInfo);
    }