[android] Fixed routing modes.

Signed-off-by: vng <viktor.govako@gmail.com>
This commit is contained in:
vng 2021-05-29 14:58:11 +03:00 committed by Roman Tsisyk
parent 5dea8a5535
commit 2a59c8474d

View file

@ -1365,7 +1365,15 @@ Java_com_mapswithme_maps_Framework_nativeMarkMapStyle(JNIEnv * env, jclass, jint
JNIEXPORT void JNICALL
Java_com_mapswithme_maps_Framework_nativeSetRouter(JNIEnv * env, jclass, jint routerType)
{
g_framework->GetRoutingManager().SetRouter(static_cast<routing::RouterType>(routerType));
using Type = routing::RouterType;
Type type = Type::Vehicle;
switch (routerType)
{
case 1: type = Type::Pedestrian; break;
case 2: type = Type::Bicycle; break;
case 3: type = Type::Transit; break;
}
g_framework->GetRoutingManager().SetRouter(type);
}
JNIEXPORT jint JNICALL