diff --git a/android/src/com/mapswithme/maps/MwmActivity.java b/android/src/com/mapswithme/maps/MwmActivity.java index 0aae2143d4..0a82bf4e27 100644 --- a/android/src/com/mapswithme/maps/MwmActivity.java +++ b/android/src/com/mapswithme/maps/MwmActivity.java @@ -53,7 +53,6 @@ import com.mapswithme.maps.news.FirstStartFragment; import com.mapswithme.maps.news.NewsFragment; import com.mapswithme.maps.routing.NavigationController; import com.mapswithme.maps.routing.RoutingController; -import com.mapswithme.maps.routing.RoutingInfo; import com.mapswithme.maps.routing.RoutingPlanFragment; import com.mapswithme.maps.routing.RoutingPlanInplaceController; import com.mapswithme.maps.search.FloatingSearchToolbarController; @@ -1353,8 +1352,7 @@ public class MwmActivity extends BaseMwmFragmentActivity if (!RoutingController.get().isNavigating()) return; - RoutingInfo info = Framework.nativeGetRouteFollowingInfo(); - mNavigationController.update(info); + mNavigationController.update(Framework.nativeGetRouteFollowingInfo()); TtsPlayer.INSTANCE.playTurnNotifications(); } diff --git a/android/src/com/mapswithme/maps/location/LocationHelper.java b/android/src/com/mapswithme/maps/location/LocationHelper.java index 71169045a3..d7d28a79eb 100644 --- a/android/src/com/mapswithme/maps/location/LocationHelper.java +++ b/android/src/com/mapswithme/maps/location/LocationHelper.java @@ -74,6 +74,9 @@ public enum LocationHelper location.getAltitude(), location.getSpeed(), location.getBearing()); + + if (mUiCallback != null) + mUiCallback.onLocationUpdated(location); } @Override