mirror of
https://github.com/keymanapp/keyman.git
synced 2026-09-19 14:17:40 +00:00
fix(android/engine): More cleanup from review comments
This commit is contained in:
parent
73879bd64e
commit
e067e836fb
1 changed files with 3 additions and 1 deletions
|
|
@ -298,13 +298,15 @@ public class PackageProcessor {
|
|||
for (int f = 0; f < files.length(); f++) {
|
||||
JSONObject file = files.getJSONObject(f);
|
||||
String filename = file.getString(PP_FILES_NAME_KEY);
|
||||
if (FileUtils.hasJavaScriptExtension(filename) && filename.equals(expectedKeyboardFilename)) {
|
||||
if (filename != null && filename.equals(expectedKeyboardFilename)) {
|
||||
count++;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (JSONException e) {
|
||||
// Setting count to 0 due to invalid package
|
||||
count = 0;
|
||||
KMLog.LogException(TAG, "", e);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue