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:
Gabriele M
2018-04-06 21:39:53 +02:00
committed by Joey
parent 6fd45962c1
commit a72b78c31e
5 changed files with 16 additions and 11 deletions

View File

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