mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +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) {
|
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);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue