From 9862fd0d06565eb15d2fabd85df395274ea4e6da Mon Sep 17 00:00:00 2001 From: Ilya Grechuhin Date: Wed, 2 Nov 2016 10:46:41 +0300 Subject: [PATCH] [ios] Fixed tts enabled & active statuses handling. --- .../CustomViews/NavigationDashboard/Sound/MWMTextToSpeech.mm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/iphone/Maps/Classes/CustomViews/NavigationDashboard/Sound/MWMTextToSpeech.mm b/iphone/Maps/Classes/CustomViews/NavigationDashboard/Sound/MWMTextToSpeech.mm index 076f8d7381..42a1e53faa 100644 --- a/iphone/Maps/Classes/CustomViews/NavigationDashboard/Sound/MWMTextToSpeech.mm +++ b/iphone/Maps/Classes/CustomViews/NavigationDashboard/Sound/MWMTextToSpeech.mm @@ -136,6 +136,8 @@ vector> availableLanguages() [[NSNotificationCenter defaultCenter] postNotificationName:[self ttsStatusNotificationKey] object:nil userInfo:nil]; + if (enabled) + [[MWMTextToSpeech tts] setActive:YES]; } - (void)setActive:(BOOL)active @@ -241,7 +243,6 @@ vector> availableLanguages() vector notifications; frm.GenerateTurnNotifications(notifications); - [self setActive:YES]; if (![self isValid]) return;