Skip to content

Commit 079aabd

Browse files
committed
Made changes
1 parent b07282f commit 079aabd

File tree

2 files changed

+17
-7
lines changed

2 files changed

+17
-7
lines changed

app/src/main/java/fr/free/nrw/commons/media/MediaDetailFragment.java

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -136,11 +136,8 @@ public static MediaDetailFragment forMedia(int index, boolean editable, boolean
136136

137137
//Had to make this class variable, to implement various onClicks, which access the media, also I fell why make separate variables when one can serve the purpose
138138
private Media media;
139-
private String reasonList[] = {"I uploaded it by mistake",
140-
"I did not know it would be publicly visible",
141-
"I realized it is bad for my privacy",
142-
"Sorry this picture is not interesting for an encyclopedia",
143-
"I changed my mind, I don't want it to be publicly visible anymore"};
139+
private ArrayList<String> reasonList;
140+
144141

145142
@Override
146143
public void onSaveInstanceState(Bundle outState) {
@@ -173,6 +170,13 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle sa
173170
initialListTop = 0;
174171
}
175172

173+
reasonList = new ArrayList<>();
174+
reasonList.add(getString(R.string.deletion_reason_1));
175+
reasonList.add(getString(R.string.deletion_reason_2));
176+
reasonList.add(getString(R.string.deletion_reason_3));
177+
reasonList.add(getString(R.string.deletion_reason_4));
178+
reasonList.add(getString(R.string.deletion_reason_5));
179+
176180
categoryNames = new ArrayList<>();
177181
categoryNames.add(getString(R.string.detail_panel_cats_loading));
178182

app/src/main/res/values/strings.xml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,12 @@
366366
<string name="bookmark_empty">You haven\'t added any bookmarks</string>
367367
<string name="provider_bookmarks_location">Bookmarks</string>
368368
<string name="log_collection_started">Log collection started. Please RESTART the app, perform action that you wish to log, and then tap \'Send log file\' again</string>
369-
<string name="no_uploads">Welcome to Commons!\n
370-
Upload your first media by touching the camera or gallery icon above.</string>
369+
<string name="no_uploads">Welcome to Commons!\n Upload your first media by touching the camera or gallery icon above.</string>
370+
371+
<string name="deletion_reason_1">I uploaded it by mistake</string>
372+
<string name="deletion_reason_2">I did not know it would be publicly visible</string>
373+
<string name="deletion_reason_3">I realized it is bad for my privacy</string>
374+
<string name="deletion_reason_4">I changed my mind, I don\'t want it to be publicly visible anymore</string>
375+
<string name="deletion_reason_5">Sorry this picture is not interesting for an encyclopedia</string>
376+
371377
</resources>

0 commit comments

Comments
 (0)