Skip to content

Commit aec377f

Browse files
briancollins-92domdomegg
briancollins-92
authored andcommitted
Fix commons-app#2191: Avoid getting stuck if there are any issues with media upload (commons-app#2193)
1 parent a3b3373 commit aec377f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ public static String getErrorMessageForResult(Context context, @Result int resul
228228
* is 0001 means IMAGE_DARK, if result is 1100 IMAGE_DUPLICATE and IMAGE_GEOLOCATION_DIFFERENT
229229
*/
230230
StringBuilder errorMessage = new StringBuilder();
231-
if (((IMAGE_DARK | IMAGE_GEOLOCATION_DIFFERENT | IMAGE_BLURRY | IMAGE_DUPLICATE) & result) == 0 ) {
231+
if (result <= 0 ) {
232232
Timber.d("No issues to warn user is found");
233233
} else {
234234
Timber.d("Issues found to warn user");

0 commit comments

Comments
 (0)