merge add place/business options

Signed-off-by: map-per <map-per@gmx.de>
This commit is contained in:
map-per
2025-09-25 16:26:32 +02:00
committed by x7z4w
parent e3c287db53
commit efc8e44350
8 changed files with 4 additions and 50 deletions

View File

@@ -167,15 +167,6 @@ JNIEXPORT jboolean JNICALL Java_app_organicmaps_sdk_editor_Editor_nativeShouldSh
return g_framework->GetPlacePageInfo().ShouldShowEditPlace();
}
JNIEXPORT jboolean JNICALL Java_app_organicmaps_sdk_editor_Editor_nativeShouldShowAddBusiness(JNIEnv *, jclass)
{
::Framework * frm = g_framework->NativeFramework();
if (!frm->HasPlacePageInfo())
return static_cast<jboolean>(false);
return g_framework->GetPlacePageInfo().ShouldShowAddBusiness();
}
JNIEXPORT jboolean JNICALL Java_app_organicmaps_sdk_editor_Editor_nativeShouldShowAddPlace(JNIEnv *, jclass)
{
::Framework * frm = g_framework->NativeFramework();

View File

@@ -49,7 +49,6 @@ public final class Editor
}
public static native boolean nativeShouldShowEditPlace();
public static native boolean nativeShouldShowAddBusiness();
public static native boolean nativeShouldShowAddPlace();
public static native boolean nativeShouldEnableEditPlace();
public static native boolean nativeShouldEnableAddPlace();