Merge pull request #944 from VladiMihaylenko/vm-master

[ios] Remove tts sound button from dashboard when this is pedestrian …
This commit is contained in:
igrechuhin 2015-12-11 17:20:58 +03:00
commit d4b1729ffc

View file

@ -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)