diff options
Diffstat (limited to 'android')
-rw-r--r-- | android/jni/com/mapswithme/maps/Framework.cpp | 5 | ||||
-rw-r--r-- | android/src/com/mapswithme/maps/routing/RoutingController.java | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/android/jni/com/mapswithme/maps/Framework.cpp b/android/jni/com/mapswithme/maps/Framework.cpp index fdd6bf0a09..db3476459b 100644 --- a/android/jni/com/mapswithme/maps/Framework.cpp +++ b/android/jni/com/mapswithme/maps/Framework.cpp @@ -1088,7 +1088,10 @@ extern "C" JNIEXPORT void JNICALL Java_com_mapswithme_maps_Framework_nativeFollowRoute(JNIEnv * env, jclass thiz) { - frm()->FollowRoute(); + g_framework->PostDrapeTask([]() + { + frm()->FollowRoute(); + }); } JNIEXPORT void JNICALL diff --git a/android/src/com/mapswithme/maps/routing/RoutingController.java b/android/src/com/mapswithme/maps/routing/RoutingController.java index 827f48c945..cc3fb8612f 100644 --- a/android/src/com/mapswithme/maps/routing/RoutingController.java +++ b/android/src/com/mapswithme/maps/routing/RoutingController.java @@ -373,12 +373,13 @@ public class RoutingController Statistics.INSTANCE.trackEvent(Statistics.EventName.ROUTING_START); AlohaHelper.logClick(AlohaHelper.ROUTING_START); setState(State.NAVIGATION); - Framework.nativeFollowRoute(); mContainer.showRoutePlan(false, null); mContainer.showNavigation(true); ThemeSwitcher.restart(); + + Framework.nativeFollowRoute(); } private void suggestRebuildRoute() |