Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlya Grechuhin <i.grechuhin@gmail.com>2016-03-11 18:05:29 +0300
committerSergey Yershov <yershov@corp.mail.ru>2016-03-23 16:53:02 +0300
commiteb7c7716514bc4c1645776c2489c5f8753fa7529 (patch)
treef86a898161e2d70258c8984638083278d54d9a7f /iphone/Maps/Settings
parent7a374cdb97d00e45bbd74bbe8908691f1d341f64 (diff)
[ios] Removed auto download support.
Diffstat (limited to 'iphone/Maps/Settings')
-rw-r--r--iphone/Maps/Settings/SettingsViewController.mm30
1 files changed, 4 insertions, 26 deletions
diff --git a/iphone/Maps/Settings/SettingsViewController.mm b/iphone/Maps/Settings/SettingsViewController.mm
index 2214155c66..0b46c155d2 100644
--- a/iphone/Maps/Settings/SettingsViewController.mm
+++ b/iphone/Maps/Settings/SettingsViewController.mm
@@ -21,7 +21,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)
@@ -76,7 +75,7 @@ typedef NS_ENUM(NSUInteger, Section)
case SectionRouting:
return 3;
case SectionMap:
- return 5;
+ return 4;
}
}
@@ -132,21 +131,8 @@ typedef NS_ENUM(NSUInteger, Section)
customCell.titleLabel.text = indexPath.row == 0 ? L(@"pref_map_style_title") : L(@"pref_track_record_title");
break;
}
- // Auto download
case 2:
{
- bool autoDownloadEnabled = true;
- (void)Settings::Get(kAutoDownloadEnabledKey, autoDownloadEnabled);
- cell = [tableView dequeueReusableCellWithIdentifier:[SwitchCell className]];
- SwitchCell * customCell = static_cast<SwitchCell *>(cell);
- customCell.titleLabel.text = L(@"autodownload");
- customCell.switchButton.on = autoDownloadEnabled;
- customCell.delegate = self;
- break;
- }
- // 3D buildings
- case 3:
- {
cell = [tableView dequeueReusableCellWithIdentifier:[SwitchCell className]];
SwitchCell * customCell = static_cast<SwitchCell *>(cell);
bool on = true, _ = true;
@@ -157,7 +143,7 @@ typedef NS_ENUM(NSUInteger, Section)
break;
}
// Zoom buttons
- case 4:
+ case 3:
{
cell = [tableView dequeueReusableCellWithIdentifier:[SwitchCell className]];
SwitchCell * customCell = static_cast<SwitchCell *>(cell);
@@ -262,16 +248,8 @@ typedef NS_ENUM(NSUInteger, Section)
case 0:
case 1:
break;
- // Auto download
- case 2:
- {
- [[Statistics instance] logEvent:kStatEventName(kStatSettings, kStatAutoDownload)
- withParameters:@{kStatValue : (value ? kStatOn : kStatOff)}];
- Settings::Set(kAutoDownloadEnabledKey, (bool)value);
- break;
- }
// 3D buildings
- case 3:
+ case 2:
{
[[Statistics instance] logEvent:kStatEventName(kStatSettings, kStat3DBuildings)
withParameters:@{kStatValue : (value ? kStatOn : kStatOff)}];
@@ -284,7 +262,7 @@ typedef NS_ENUM(NSUInteger, Section)
break;
}
// Zoom buttons
- case 4:
+ case 3:
{
[stat logEvent:kStatEventName(kStatSettings, kStatToggleZoomButtonsVisibility)
withParameters:@{kStatValue : (value ? kStatVisible : kStatHidden)}];