Fix #2134: Remove formatting characters from upload_problem strings (#2135)

This commit is contained in:
sp2710 2018-12-17 06:10:24 +05:30 committed by Adam Jones
parent e09ce41df3
commit 102b2d7e56
2 changed files with 10 additions and 10 deletions

View file

@ -236,22 +236,22 @@ public class ImageUtils {
errorMessage.append(context.getResources().getString(R.string.upload_problem_exist));
if ((IMAGE_DARK & result) != 0 ) { // We are checking image dark bit to see if that bit is set or not
errorMessage.append(context.getResources().getString(R.string.upload_problem_image_dark));
errorMessage.append("\n - ").append(context.getResources().getString(R.string.upload_problem_image_dark));
}
if ((IMAGE_BLURRY & result) != 0 ) {
errorMessage.append(context.getResources().getString(R.string.upload_image_problem_blurry));
errorMessage.append("\n - ").append(context.getResources().getString(R.string.upload_image_problem_blurry));
}
if ((IMAGE_DUPLICATE & result) != 0 ) {
errorMessage.append(context.getResources().getString(R.string.upload_problem_image_duplicate));
errorMessage.append("\n - ").append(context.getResources().getString(R.string.upload_problem_image_duplicate));
}
if ((IMAGE_GEOLOCATION_DIFFERENT & result) != 0 ) {
errorMessage.append(context.getResources().getString(R.string.upload_problem_different_geolocation));
errorMessage.append("\n - ").append(context.getResources().getString(R.string.upload_problem_different_geolocation));
}
errorMessage.append(context.getResources().getString(R.string.upload_problem_do_you_continue));
errorMessage.append("\n\n").append(context.getResources().getString(R.string.upload_problem_do_you_continue));
}
return errorMessage.toString();