From bc026f0f923622cd2c6dad1dff5c869add37d457 Mon Sep 17 00:00:00 2001 From: Dmitry Yunitsky Date: Wed, 20 Apr 2016 17:51:21 +0300 Subject: [PATCH] [android] Used enum in notes. --- android/jni/com/mapswithme/maps/editor/Editor.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/android/jni/com/mapswithme/maps/editor/Editor.cpp b/android/jni/com/mapswithme/maps/editor/Editor.cpp index 1d02723dfb..526489d7fb 100644 --- a/android/jni/com/mapswithme/maps/editor/Editor.cpp +++ b/android/jni/com/mapswithme/maps/editor/Editor.cpp @@ -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);