mirror of
				https://github.com/commons-app/apps-android-commons.git
				synced 2025-10-30 22:34:02 +01:00 
			
		
		
		
	fixed. I have fixed the layout desingn of achivement activity (#2469)
This commit is contained in:
		
							parent
							
								
									83770ea484
								
							
						
					
					
						commit
						c7e819d404
					
				
					 2 changed files with 14 additions and 5 deletions
				
			
		|  | @ -117,6 +117,7 @@ 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 | ||||
|      */ | ||||
|  | @ -127,6 +128,11 @@ public class ImageProcessingService { | |||
|         } | ||||
|         return Single.fromCallable(() -> filePath) | ||||
|                 .map(fileUtilsWrapper::getGeolocationOfFile) | ||||
|                 .flatMap(geoLocation -> imageUtilsWrapper.checkImageGeolocationIsDifferent(geoLocation, place.getLocation())); | ||||
|                 .flatMap(geoLocation -> { | ||||
|                     if (StringUtils.isNullOrWhiteSpace(geoLocation)) { | ||||
|                         return Single.just(ImageUtils.IMAGE_OK); | ||||
|                     } | ||||
|                     return imageUtilsWrapper.checkImageGeolocationIsDifferent(geoLocation, place.getLocation()); | ||||
|                 }); | ||||
|     } | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Anike Nath
						Anike Nath