diff options
author | 2010-07-28 12:02:34 -0700 | |
---|---|---|
committer | 2010-07-28 12:02:34 -0700 | |
commit | d0f4413f95256ffbc12e6f60cfa65c618bfedb78 (patch) | |
tree | ff1d411049df124614712a6b74a77a551f227298 | |
parent | 7a73c18fd7e5e5f7f7278fe0a8f84556e6420f84 (diff) | |
parent | 4d2d459cd0137c352c4e3c9ce313dc4a8b63f7d7 (diff) | |
download | latinime-d0f4413f95256ffbc12e6f60cfa65c618bfedb78.tar.gz latinime-d0f4413f95256ffbc12e6f60cfa65c618bfedb78.tar.xz latinime-d0f4413f95256ffbc12e6f60cfa65c618bfedb78.zip |
Merge "Fix for build breakage"
-rw-r--r-- | tests/src/com/android/inputmethod/latin/tests/SuggestHelper.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/src/com/android/inputmethod/latin/tests/SuggestHelper.java b/tests/src/com/android/inputmethod/latin/tests/SuggestHelper.java index e3e995a23..107f04c7c 100644 --- a/tests/src/com/android/inputmethod/latin/tests/SuggestHelper.java +++ b/tests/src/com/android/inputmethod/latin/tests/SuggestHelper.java @@ -36,10 +36,11 @@ public class SuggestHelper { public SuggestHelper(String tag, Context context, int[] resId) { TAG = tag; + InputStream[] res = null; try { // merging separated dictionary into one if dictionary is separated int total = 0; - InputStream[] res = new InputStream[resId.length]; + res = new InputStream[resId.length]; for (int i = 0; i < resId.length; i++) { res[i] = context.getResources().openRawResource(resId[i]); total += res[i].available(); @@ -61,7 +62,7 @@ public class SuggestHelper { Log.w(TAG, "No available memory for binary dictionary"); } finally { try { - for (int i = 0;i < is.length; i++) { + for (int i = 0;i < res.length; i++) { res[i].close(); } } catch (IOException e) { |