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
This commit is contained in:
parent
b1a8308aaf
commit
d8e8bfb58b
2 changed files with 4 additions and 11 deletions
|
|
@ -107,7 +107,10 @@ class UploadMediaPresenter @Inject constructor(
|
||||||
view.showProgress(false)
|
view.showProgress(false)
|
||||||
val gpsCoords = uploadItem.gpsCoords
|
val gpsCoords = uploadItem.gpsCoords
|
||||||
val hasImageCoordinates = gpsCoords != null && gpsCoords.imageCoordsExists
|
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)
|
checkNearbyPlaces(uploadItem)
|
||||||
}
|
}
|
||||||
}, { throwable: Throwable? ->
|
}, { throwable: Throwable? ->
|
||||||
|
|
|
||||||
|
|
@ -1,10 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<!-- Authors:
|
|
||||||
* Vlad5250
|
|
||||||
-->
|
|
||||||
<resources>
|
|
||||||
<string name="crash_dialog_title">کامَنٕز گوو رُکِتھ</string>
|
|
||||||
<string name="crash_dialog_text">Oops. کیہہ تام گوو غلط!</string>
|
|
||||||
<string name="crash_dialog_comment_prompt">ؤنِیوٚ اَسہِ توٚہہِ کیاہ ٲسِیوٚ کران، تہٕ کٕریٚو تہِ اَسہِ سٕتی شیر بذریعہِ برقی خط. یُس مَدَتھ کَرِ اَسہِ اَتھ شہَرنَس منٛز!</string>
|
|
||||||
<string name="crash_dialog_ok_toast">شُکریہ!</string>
|
|
||||||
</resources>
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue