Skip to content

Commit

Permalink
fix(android): fix incorrectly keyed json accessors
Browse files Browse the repository at this point in the history
  • Loading branch information
lincolnthree committed Jun 29, 2022
1 parent 8ff71af commit 6071bfa
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ public static VersionInfo fromJSON(final JSObject json) throws JSONException {
public static VersionInfo fromJSON(final String jsonString) throws JSONException {
JSONObject json = new JSONObject(new JSONTokener(jsonString));
return new VersionInfo(
json.has("folder") ? json.getString("name") : "",
json.has("versionName") ? json.getString("version") : VersionInfo.VERSION_UNKNOWN,
json.has("folder") ? json.getString("folder") : "",
json.has("versionName") ? json.getString("versionName") : VersionInfo.VERSION_UNKNOWN,
json.has("status") ? VersionStatus.fromString(json.getString("status")) : VersionStatus.PENDING,
json.has("downloaded") ? json.getString("downloaded") : ""
);
Expand Down

0 comments on commit 6071bfa

Please sign in to comment.