mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +01:00
Fix achievements response parsing (#2323)
This commit is contained in:
parent
532ab8aeae
commit
53e186df9a
1 changed files with 2 additions and 2 deletions
|
|
@ -995,9 +995,9 @@ public class ApacheHttpClientMediaWikiApi implements MediaWikiApi {
|
|||
if (json == null) {
|
||||
return null;
|
||||
}
|
||||
Timber.d(json);
|
||||
Timber.d("Response for achievements is %s", json);
|
||||
try {
|
||||
return gson.fromJson(String.valueOf(response.body()), FeedbackResponse.class);
|
||||
return gson.fromJson(json, FeedbackResponse.class);
|
||||
}
|
||||
catch (Exception e){
|
||||
return new FeedbackResponse("",0,0,0,new FeaturedImages(0,0),0,"",0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue