forked from organicmaps/organicmaps
iOS. Executing a part of TurnSound functionality even if TurnSound is not available.
This commit is contained in:
parent
9e5282d698
commit
abf2bf8c39
1 changed files with 3 additions and 3 deletions
|
@ -128,9 +128,6 @@ extern NSString * const kMwmTextToSpeechDisable = @"MWMTEXTTOSPEECH_DISABLE";
|
|||
|
||||
- (void)playTurnNotifications
|
||||
{
|
||||
if (![self isValid])
|
||||
return;
|
||||
|
||||
Framework & frm = GetFramework();
|
||||
if (!frm.IsRoutingActive())
|
||||
return;
|
||||
|
@ -138,6 +135,9 @@ extern NSString * const kMwmTextToSpeechDisable = @"MWMTEXTTOSPEECH_DISABLE";
|
|||
vector<string> notifications;
|
||||
frm.GenerateTurnSound(notifications);
|
||||
|
||||
if (![self isValid])
|
||||
return;
|
||||
|
||||
for (auto const & text : notifications)
|
||||
[self speakOneString:@(text.c_str())];
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue