mirror of
https://github.com/KokaKiwi/BarInsta
synced 2025-12-08 13:16:31 +00:00
Merge branch 'master' into pr/77
This commit is contained in:
commit
e52c185ffe
1 changed files with 2 additions and 2 deletions
|
|
@ -37,7 +37,7 @@ public final class UpdateChecker extends AsyncTask<Void, Void, Boolean> {
|
|||
if (responseCode == HttpURLConnection.HTTP_OK) {
|
||||
final JSONObject data = new JSONObject(Utils.readFromConnection(conn));
|
||||
if (BuildConfig.VERSION_CODE < data.getInt("suggestedVersionCode")) {
|
||||
version = data.getJSONArray("packages").getString("versionName");
|
||||
version = data.getJSONArray("packages").getJSONObject(0).getString("versionName");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue