Fix #2191: Avoid getting stuck if there are any issues with media upload (#2193)

This commit is contained in:
briancollins-92 2018-12-20 17:30:14 +00:00 committed by Adam Jones
parent a3b33736b3
commit aec377f547

View file

@ -228,7 +228,7 @@ public class ImageUtils {
* is 0001 means IMAGE_DARK, if result is 1100 IMAGE_DUPLICATE and IMAGE_GEOLOCATION_DIFFERENT
*/
StringBuilder errorMessage = new StringBuilder();
if (((IMAGE_DARK | IMAGE_GEOLOCATION_DIFFERENT | IMAGE_BLURRY | IMAGE_DUPLICATE) & result) == 0 ) {
if (result <= 0 ) {
Timber.d("No issues to warn user is found");
} else {
Timber.d("Issues found to warn user");