forked from organicmaps/organicmaps
Merge pull request #944 from VladiMihaylenko/vm-master
[ios] Remove tts sound button from dashboard when this is pedestrian …
This commit is contained in:
commit
d4b1729ffc
1 changed files with 3 additions and 0 deletions
|
@ -348,6 +348,9 @@ extern NSString * const kTTSStatusWasChangedNotification;
|
|||
[self.routePreview remove];
|
||||
MWMTextToSpeech * tts = [MWMTextToSpeech tts];
|
||||
BOOL const isNeedToEnable = tts.isNeedToEnable;
|
||||
BOOL const soundButtonHidden = GetFramework().GetRouter() == routing::RouterType::Pedestrian;
|
||||
self.navigationDashboardLandscape.soundButton.hidden = soundButtonHidden;
|
||||
self.navigationDashboardPortrait.soundButton.hidden = soundButtonHidden;
|
||||
self.navigationDashboardPortrait.soundButton.selected = isNeedToEnable;
|
||||
self.navigationDashboardLandscape.soundButton.selected = isNeedToEnable;
|
||||
if (isNeedToEnable)
|
||||
|
|
Loading…
Add table
Reference in a new issue