mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +01:00
fix popup from appearing in nearby (#6359)
Co-authored-by: Nicolas Raoul <nicolas.raoul@gmail.com>
This commit is contained in:
parent
3bd0ec4466
commit
f98b49608e
1 changed files with 4 additions and 1 deletions
|
|
@ -107,7 +107,10 @@ class UploadMediaPresenter @Inject constructor(
|
|||
view.showProgress(false)
|
||||
val gpsCoords = uploadItem.gpsCoords
|
||||
val hasImageCoordinates = gpsCoords != null && gpsCoords.imageCoordsExists
|
||||
if (hasImageCoordinates && place == null) {
|
||||
|
||||
// Only check for nearby places if image has coordinates AND no place was pre-selected
|
||||
// This prevents the popup from appearing when uploading from Nearby feature
|
||||
if (hasImageCoordinates && place == null && uploadItem.place == null) {
|
||||
checkNearbyPlaces(uploadItem)
|
||||
}
|
||||
}, { throwable: Throwable? ->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue