[android] Used enum in notes.

This commit is contained in:
Dmitry Yunitsky 2016-04-20 17:51:21 +03:00 committed by Sergey Magidovich
parent ee78f55bcd
commit bc026f0f92

View file

@ -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);