am ea727b6b: Carry over the mMaxPreWordCount when creating the new NgramContext

* commit 'ea727b6b71398c9f78fbc7b79d3f0c73d301b938':
  Carry over the mMaxPreWordCount when creating the new NgramContext
main
Mohammadinamul Sheik 2015-03-17 19:37:01 +00:00 committed by Android Git Automerger
commit 5789c36add
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}