diff options
author | Alex Ning <chineseperson5@gmail.com> | 2020-05-02 00:34:56 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2020-05-02 00:34:56 +0000 |
commit | ae98fd8a08d2f65415403b3159f3303bdd350978 (patch) | |
tree | 1973e600a246f5c88df2fb9f57e517cb070ad826 /app | |
parent | 360051a302ce2f3e917f42f431727ce43a7cb528 (diff) | |
download | infinity-for-reddit-ae98fd8a08d2f65415403b3159f3303bdd350978.tar infinity-for-reddit-ae98fd8a08d2f65415403b3159f3303bdd350978.tar.gz infinity-for-reddit-ae98fd8a08d2f65415403b3159f3303bdd350978.tar.bz2 infinity-for-reddit-ae98fd8a08d2f65415403b3159f3303bdd350978.tar.lz infinity-for-reddit-ae98fd8a08d2f65415403b3159f3303bdd350978.tar.xz infinity-for-reddit-ae98fd8a08d2f65415403b3159f3303bdd350978.tar.zst infinity-for-reddit-ae98fd8a08d2f65415403b3159f3303bdd350978.zip |
Fix JSON parsing error when parsing user data.
Diffstat (limited to '')
-rw-r--r-- | app/src/main/java/ml/docilealligator/infinityforreddit/ParseUserData.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/ParseUserData.java b/app/src/main/java/ml/docilealligator/infinityforreddit/ParseUserData.java index 87334324..f3766d05 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/ParseUserData.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/ParseUserData.java @@ -41,7 +41,7 @@ public class ParseUserData { long cakeday = userDataJson.getLong(JSONUtils.CREATED_UTC_KEY) * 1000; boolean isGold = userDataJson.getBoolean(JSONUtils.IS_GOLD_KEY); boolean isFriend = userDataJson.getBoolean(JSONUtils.IS_FRIEND_KEY); - String description = userDataJson.getString(JSONUtils.PUBLIC_DESCRIPTION_KEY); + String description = userDataJson.getJSONObject(JSONUtils.SUBREDDIT_KEY).getString(JSONUtils.PUBLIC_DESCRIPTION_KEY); return new UserData(userName, iconImageUrl, bannerImageUrl, linkKarma, commentKarma, cakeday, isGold, isFriend, canBeFollowed, description); |