diff options
author | Ilya Grechuhin <i.grechuhin@gmail.com> | 2016-07-07 11:18:52 +0300 |
---|---|---|
committer | Ilya Grechuhin <i.grechuhin@gmail.com> | 2016-07-10 15:27:39 +0300 |
commit | f5a722ae6ab6ae7c7533e54c5c7f2dd7586e2b22 (patch) | |
tree | ec1c75851965169e1721a90cd94b7f66a26d20f9 /iphone/Maps/Settings | |
parent | 151fb1d776d3e5b335b408581168c5124472e679 (diff) |
[ios] Removed old navigation dashboard.
Diffstat (limited to 'iphone/Maps/Settings')
-rw-r--r-- | iphone/Maps/Settings/SettingsViewController.mm | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/iphone/Maps/Settings/SettingsViewController.mm b/iphone/Maps/Settings/SettingsViewController.mm index 0edaddefc2..fd69b56d0f 100644 --- a/iphone/Maps/Settings/SettingsViewController.mm +++ b/iphone/Maps/Settings/SettingsViewController.mm @@ -22,7 +22,6 @@ extern char const * kStatisticsEnabledSettingsKey; char const * kAdForbiddenSettingsKey = "AdForbidden"; char const * kAdServerForbiddenKey = "AdServerForbidden"; char const * kAutoDownloadEnabledKey = "AutoDownloadEnabled"; -extern NSString * const kTTSStatusWasChangedNotification = @"TTFStatusWasChangedFromSettingsNotification"; typedef NS_ENUM(NSUInteger, Section) { @@ -192,7 +191,7 @@ typedef NS_ENUM(NSUInteger, Section) { cell = [tableView dequeueReusableCellWithIdentifier:[SwitchCell className]]; SwitchCell * customCell = (SwitchCell *)cell; - customCell.switchButton.on = [[MWMTextToSpeech tts] isNeedToEnable]; + customCell.switchButton.on = [MWMTextToSpeech isTTSEnabled]; customCell.titleLabel.text = L(@"pref_tts_enable_title"); customCell.delegate = self; break; @@ -289,7 +288,7 @@ typedef NS_ENUM(NSUInteger, Section) [Statistics logEvent:kStatEventName(kStatSettings, kStatToggleZoomButtonsVisibility) withParameters:@{kStatValue : (value ? kStatVisible : kStatHidden)}]; settings::Set("ZoomButtonsEnabled", static_cast<bool>(value)); - [MapsAppDelegate theApp].mapViewController.controlsManager.zoomHidden = !value; + [MapViewController controller].controlsManager.zoomHidden = !value; break; } } @@ -319,9 +318,7 @@ typedef NS_ENUM(NSUInteger, Section) { [Statistics logEvent:kStatEventName(kStatSettings, kStatTTS) withParameters:@{kStatValue : value ? kStatOn : kStatOff}]; - [[MWMTextToSpeech tts] setNeedToEnable:value]; - [[NSNotificationCenter defaultCenter] postNotificationName:kTTSStatusWasChangedNotification - object:nil userInfo:@{@"on" : @(value)}]; + [MWMTextToSpeech setTTSEnabled:value]; } break; |