From 0ef60e050dfbb74a824ecbdc77c274b9f54515ad Mon Sep 17 00:00:00 2001 From: Vivek Maskara Date: Fri, 15 Feb 2019 17:50:04 +0530 Subject: [PATCH] Revert "fixed. I have fixed the layout desingn of achivement activity (#2469)" (#2475) This reverts commit c7e819d404dfc0983f26c3802693a72cfad2d6ee. --- .../nrw/commons/upload/ImageProcessingService.java | 8 +------- app/src/main/res/layout/activity_achievements.xml | 11 ++++------- 2 files changed, 5 insertions(+), 14 deletions(-) diff --git a/app/src/main/java/fr/free/nrw/commons/upload/ImageProcessingService.java b/app/src/main/java/fr/free/nrw/commons/upload/ImageProcessingService.java index a03fb7e69..5992e4b34 100644 --- a/app/src/main/java/fr/free/nrw/commons/upload/ImageProcessingService.java +++ b/app/src/main/java/fr/free/nrw/commons/upload/ImageProcessingService.java @@ -117,7 +117,6 @@ public class ImageProcessingService { /** * Checks for image geolocation - * returns IMAGE_OK if the place is null or if the file doesn't contain a geolocation * @param filePath file to be checked * @return IMAGE_GEOLOCATION_DIFFERENT or IMAGE_OK */ @@ -128,11 +127,6 @@ public class ImageProcessingService { } return Single.fromCallable(() -> filePath) .map(fileUtilsWrapper::getGeolocationOfFile) - .flatMap(geoLocation -> { - if (StringUtils.isNullOrWhiteSpace(geoLocation)) { - return Single.just(ImageUtils.IMAGE_OK); - } - return imageUtilsWrapper.checkImageGeolocationIsDifferent(geoLocation, place.getLocation()); - }); + .flatMap(geoLocation -> imageUtilsWrapper.checkImageGeolocationIsDifferent(geoLocation, place.getLocation())); } } diff --git a/app/src/main/res/layout/activity_achievements.xml b/app/src/main/res/layout/activity_achievements.xml index 2fcca4a0b..0fb725cc5 100644 --- a/app/src/main/res/layout/activity_achievements.xml +++ b/app/src/main/res/layout/activity_achievements.xml @@ -31,11 +31,13 @@ android:layout_height="match_parent" android:orientation="vertical"> + +