mirror of
https://github.com/KokaKiwi/BarInsta
synced 2024-11-22 14:47:29 +00:00
Update UpdateChecker.java
This commit is contained in:
parent
93b80a7147
commit
43f77409ba
@ -37,7 +37,7 @@ public final class UpdateChecker extends AsyncTask<Void, Void, Boolean> {
|
|||||||
if (responseCode == HttpURLConnection.HTTP_OK) {
|
if (responseCode == HttpURLConnection.HTTP_OK) {
|
||||||
final JSONObject data = new JSONObject(Utils.readFromConnection(conn));
|
final JSONObject data = new JSONObject(Utils.readFromConnection(conn));
|
||||||
if (BuildConfig.VERSION_CODE < data.getInt("suggestedVersionCode")) {
|
if (BuildConfig.VERSION_CODE < data.getInt("suggestedVersionCode")) {
|
||||||
version = data.getJSONArray("packages").getString("versionName");
|
version = data.getJSONArray("packages").getJSONObject(0).getString("versionName");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user