File tree 1 file changed +5
-8
lines changed
app/src/main/java/fr/free/nrw/commons/delete
1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change 17
17
18
18
import fr .free .nrw .commons .Media ;
19
19
import fr .free .nrw .commons .R ;
20
+ import fr .free .nrw .commons .achievements .FeedbackResponse ;
20
21
import fr .free .nrw .commons .auth .SessionManager ;
21
22
import fr .free .nrw .commons .mwapi .MediaWikiApi ;
22
23
import fr .free .nrw .commons .utils .ViewUtil ;
@@ -69,14 +70,10 @@ private void fetchArticleNumber() {
69
70
}
70
71
}
71
72
72
- private void appendArticlesUsed (JSONObject object ){
73
- try {
74
- reason += ". Uploaded by myself on" + prettyUploadedDate (media );
75
- reason += ",used in " + object .getInt ("articlesUsingImages" ) + " articles" ;
76
- Log .i ("New Reason" , reason );
77
- } catch (JSONException e ) {
78
- e .printStackTrace ();
79
- }
73
+ private void appendArticlesUsed (FeedbackResponse object ){
74
+ reason += ". Uploaded by myself on" + prettyUploadedDate (media );
75
+ reason += ",used in " + object .getArticlesUsingImages () + " articles" ;
76
+ Log .i ("New Reason" , reason );
80
77
}
81
78
82
79
You can’t perform that action at this time.
0 commit comments