diff options
Diffstat (limited to 'android/src/com/mapswithme/maps/MWMActivity.java')
-rw-r--r-- | android/src/com/mapswithme/maps/MWMActivity.java | 4 |
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); } } |