Get file size from JSON
The server now reports the size of the file, so use it and require it. Change-Id: I2248347431b65ae54dd7295872d70aba456ed8d8
This commit is contained in:
@@ -88,6 +88,7 @@ public class Utils {
|
||||
update.setName(object.getString("filename"));
|
||||
update.setDownloadId(object.getString("id"));
|
||||
update.setType(object.getString("romtype"));
|
||||
update.setFileSize(object.getLong("size"));
|
||||
update.setDownloadUrl(object.getString("url"));
|
||||
update.setVersion(object.getString("version"));
|
||||
return update;
|
||||
|
Reference in New Issue
Block a user