Fix achievements response parsing (#2323)

This commit is contained in:
Vivek Maskara 2019-01-24 13:50:41 +05:30 committed by Josephine Lim
parent 532ab8aeae
commit 53e186df9a

View file

@ -995,9 +995,9 @@ public class ApacheHttpClientMediaWikiApi implements MediaWikiApi {
if (json == null) { if (json == null) {
return null; return null;
} }
Timber.d(json); Timber.d("Response for achievements is %s", json);
try { try {
return gson.fromJson(String.valueOf(response.body()), FeedbackResponse.class); return gson.fromJson(json, FeedbackResponse.class);
} }
catch (Exception e){ catch (Exception e){
return new FeedbackResponse("",0,0,0,new FeaturedImages(0,0),0,"",0); return new FeedbackResponse("",0,0,0,new FeaturedImages(0,0),0,"",0);