[editor] 'discard' and 'delete' buttons only available when nothing was uploaded to OSM

Signed-off-by: map-per <map-per@gmx.de>
This commit is contained in:
map-per
2025-12-17 18:00:58 +01:00
committed by map-per
parent 4f2b479b2c
commit 26bad5dffb
8 changed files with 29 additions and 23 deletions

View File

@@ -948,7 +948,7 @@ public class EditorFragment extends BaseMwmFragment implements View.OnClickListe
mDisused.setVisibility(Editor.nativeCanMarkPlaceAsDisused() ? View.VISIBLE : View.GONE);
if (Editor.nativeIsMapObjectUploaded())
if (Editor.nativeAreSomeFeatureChangesUploaded())
{
mReset.setText(R.string.editor_place_doesnt_exist);
return;
@@ -966,7 +966,7 @@ public class EditorFragment extends BaseMwmFragment implements View.OnClickListe
private void reset()
{
if (Editor.nativeIsMapObjectUploaded())
if (Editor.nativeAreSomeFeatureChangesUploaded())
{
placeDoesntExist();
return;