File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed
app/src/main/java/fr/free/nrw/commons/delete Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change 1717
1818import fr .free .nrw .commons .Media ;
1919import fr .free .nrw .commons .R ;
20+ import fr .free .nrw .commons .achievements .FeedbackResponse ;
2021import fr .free .nrw .commons .auth .SessionManager ;
2122import fr .free .nrw .commons .mwapi .MediaWikiApi ;
2223import fr .free .nrw .commons .utils .ViewUtil ;
@@ -69,14 +70,10 @@ private void fetchArticleNumber() {
6970 }
7071 }
7172
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 );
8077 }
8178
8279
You can’t perform that action at this time.
0 commit comments