forked from organicmaps/organicmaps
[android] Used enum in notes.
This commit is contained in:
parent
ee78f55bcd
commit
bc026f0f92
1 changed files with 4 additions and 2 deletions
|
@ -355,14 +355,16 @@ Java_com_mapswithme_maps_editor_Editor_nativeGetMwmVersion(JNIEnv * env, jclass
|
|||
JNIEXPORT void JNICALL
|
||||
Java_com_mapswithme_maps_editor_Editor_nativeCreateNote(JNIEnv * env, jclass clazz, jdouble lat, jdouble lon, jstring text)
|
||||
{
|
||||
Editor::Instance().CreateNote(ms::LatLon(lat, lon), g_editableMapObject.GetID(), jni::ToNativeString(env, text));
|
||||
Editor::Instance().CreateNote(ms::LatLon(lat, lon), g_editableMapObject.GetID(),
|
||||
osm::Editor::NoteProblemType::General, jni::ToNativeString(env, text));
|
||||
}
|
||||
|
||||
// static void nativePlaceDoesNotExist(double lat, double lon);
|
||||
JNIEXPORT void JNICALL
|
||||
Java_com_mapswithme_maps_editor_Editor_nativePlaceDoesNotExist(JNIEnv * env, jclass clazz, jdouble lat, jdouble lon)
|
||||
{
|
||||
Editor::Instance().CreateNote(ms::LatLon(lat, lon), g_editableMapObject.GetID(), osm::Editor::kPlaceDoesNotExistMessage);
|
||||
Editor::Instance().CreateNote(ms::LatLon(lat, lon), g_editableMapObject.GetID(),
|
||||
osm::Editor::NoteProblemType::PlaceDoesNotExist, "");
|
||||
}
|
||||
|
||||
// static boolean nativeIsHouseValid(String houseNumber);
|
||||
|
|
Loading…
Add table
Reference in a new issue