OpenDelta: must use basename of full build json
Change-Id: I0cc5dacd52b385c91113d4299bbb7cc291aef992
This commit is contained in:
parent
999962565c
commit
0531597d9f
|
@ -848,8 +848,9 @@ OnWantUpdateCheckListener, OnSharedPreferenceChangeListener {
|
|||
for (int i = 0; i < builds.length(); i++) {
|
||||
JSONObject build = builds.getJSONObject(i);
|
||||
String file = build.getString("filename");
|
||||
if (file.endsWith(".zip") && file.startsWith(config.getFileBaseNamePrefix())) {
|
||||
buildNames.add(new File(file).getName());
|
||||
String fileName = new File(file).getName();
|
||||
if (fileName.endsWith(".zip") && fileName.startsWith(config.getFileBaseNamePrefix())) {
|
||||
buildNames.add(fileName);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue