Skip to content

Commit 239f749

Browse files
vanshikaaroradomdomegg
authored andcommitted
Fix commons-app#2692: Missing description in upload warning (commons-app#2697)
1 parent 8a9bfbe commit 239f749

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

app/src/main/java/fr/free/nrw/commons/utils/ImageUtils.java

+4
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,10 @@ public static String getErrorMessageForResult(Context context, @Result int resul
263263
errorMessage.append("\n - ").append(context.getResources().getString(R.string.upload_problem_fbmd));
264264
}
265265

266+
if ((FILE_NO_EXIF & result) != 0){
267+
errorMessage.append("\n - ").append(context.getResources().getString(R.string.internet_downloaded));
268+
}
269+
266270
errorMessage.append("\n\n").append(context.getResources().getString(R.string.upload_problem_do_you_continue));
267271
}
268272

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

+2
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,8 @@
249249
<string name="upload_problem_different_geolocation">This picture was taken at a different location.</string>
250250
<string name="upload_problem_fbmd">Please only upload pictures that you have taken by yourself. Don\'t upload pictures that you have found on other people\'s Facebook accounts.</string>
251251
<string name="upload_problem_do_you_continue">Do you still want to upload this picture?</string>
252+
<string name="internet_downloaded">Please only upload pictures that you have taken by yourself.Don\'t upload pictures that you have downloaded from internet</string>
253+
252254

253255
<string name="give_permission">Give permission</string>
254256
<string name="use_external_storage">Use external storage</string>

0 commit comments

Comments
 (0)