[AC9] Resize an array
It's not easy for native code to only output the first result, so let's supply enough room for it to output all. Bug: 9059617 Change-Id: Ie93b7e54284c8c5d01fdc15846cf52d3442287b6main
parent
5cab0eb75b
commit
060917ed9a
|
@ -54,7 +54,7 @@ public final class BinaryDictionary extends Dictionary {
|
|||
private final int[] mSpaceIndices = new int[MAX_RESULTS];
|
||||
private final int[] mOutputScores = new int[MAX_RESULTS];
|
||||
private final int[] mOutputTypes = new int[MAX_RESULTS];
|
||||
private final int[] mOutputAutoCommitFirstWordConfidence = new int[1]; // Only one result
|
||||
private final int[] mOutputAutoCommitFirstWordConfidence = new int[MAX_RESULTS];
|
||||
|
||||
private final NativeSuggestOptions mNativeSuggestOptions = new NativeSuggestOptions();
|
||||
|
||||
|
|
Loading…
Reference in New Issue