mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Fix for build breakage
Change-Id: Ie7ec03bf10ec9c9ce1290942a47cb538eeef6169
This commit is contained in:
parent
80aa14fd43
commit
4d2d459cd0
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user