forked from organicmaps/organicmaps
[ios] Updated auto download settings.
This commit is contained in:
parent
60b7fe0417
commit
9e09ffcc6a
2 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue