Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'android/src/com/mapswithme/maps/MWMActivity.java')
-rw-r--r--android/src/com/mapswithme/maps/MWMActivity.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/android/src/com/mapswithme/maps/MWMActivity.java b/android/src/com/mapswithme/maps/MWMActivity.java
index fac141bb37..10deb18735 100644
--- a/android/src/com/mapswithme/maps/MWMActivity.java
+++ b/android/src/com/mapswithme/maps/MWMActivity.java
@@ -705,10 +705,12 @@ public class MWMActivity extends BaseMwmFragmentActivity
{
mLayoutRouting.updateRouteInfo();
- // TODO think about moving TtsPlayer logic to RoutingLayout to minimyze native calls.
+ // TODO think about moving TtsPlayer logic to RoutingLayout to minimize native calls.
if (state == RoutingLayout.State.TURN_INSTRUCTIONS)
{
RoutingInfo info = Framework.nativeGetRouteFollowingInfo();
+ if (info == null)
+ return;
TtsPlayer.INSTANCE.speakNotifications(info.turnNotifications);
}
}