OpenDelta: must use basename of full build json

Change-Id: I0cc5dacd52b385c91113d4299bbb7cc291aef992
This commit is contained in:
maxwen 2016-01-19 13:07:24 +01:00
parent 999962565c
commit 0531597d9f
1 changed files with 3 additions and 2 deletions

View File

@ -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);
}
}
}