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

Commit 060917ed authored by Jean Chalard's avatar Jean Chalard
Browse files

[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: Ie93b7e54284c8c5d01fdc15846cf52d3442287b6
parent 5cab0eb7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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();