[ios] Updated auto download settings.

This commit is contained in:
Ilya Grechuhin 2016-01-28 11:44:43 +03:00 committed by Sergey Yershov
parent 60b7fe0417
commit 9e09ffcc6a
2 changed files with 3 additions and 3 deletions

View file

@ -598,7 +598,7 @@ NSString * const kAuthorizationSegue = @"Map2AuthorizationSegue";
{
if (platform::migrate::NeedMigrate())
return;
bool autoDownloadEnabled = false;
bool autoDownloadEnabled = true;
(void)Settings::Get(kAutoDownloadEnabledKey, autoDownloadEnabled);
if (autoDownloadEnabled && Platform::ConnectionStatus() == Platform::EConnectionType::CONNECTION_WIFI)
GetFramework().GetCountryTree().GetActiveMapLayout().DownloadMap(idx, MapOptions::MapWithCarRouting);

View file

@ -134,11 +134,11 @@ typedef NS_ENUM(NSUInteger, Section)
// Auto download
case 2:
{
bool autoDownloadEnabled = false;
bool autoDownloadEnabled = true;
(void)Settings::Get(kAutoDownloadEnabledKey, autoDownloadEnabled);
cell = [tableView dequeueReusableCellWithIdentifier:[SwitchCell className]];
SwitchCell * customCell = static_cast<SwitchCell *>(cell);
customCell.titleLabel.text = L(@"pref_auto_download_title");
customCell.titleLabel.text = L(@"mwm_autodownload");
customCell.switchButton.on = autoDownloadEnabled;
customCell.delegate = self;
break;