From 8510918108dfb15968cc1d92ee408a4457d948f3 Mon Sep 17 00:00:00 2001 From: Alexander Date: Tue, 10 Mar 2020 10:52:24 +0300 Subject: [PATCH] [iOS] Fixed 'Mobile network' alert in Downloader https://jira.mail.ru/browse/MAPSME-12885 --- iphone/Maps/Core/Storage/MWMStorage+UI.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/iphone/Maps/Core/Storage/MWMStorage+UI.m b/iphone/Maps/Core/Storage/MWMStorage+UI.m index 19093b8efa..30a960a828 100644 --- a/iphone/Maps/Core/Storage/MWMStorage+UI.m +++ b/iphone/Maps/Core/Storage/MWMStorage+UI.m @@ -26,6 +26,7 @@ if (error.code == kStorageCellularForbidden) { __weak __typeof(self) ws = self; [[MWMAlertViewController activeAlertController] presentNoWiFiAlertWithOkBlock:^{ + [MWMStorage enableCellularDownload:YES]; [ws downloadNode:countryId]; } andCancelBlock:nil]; } else { @@ -49,6 +50,7 @@ if (error.code == kStorageCellularForbidden) { __weak __typeof(self) ws = self; [[MWMAlertViewController activeAlertController] presentNoWiFiAlertWithOkBlock:^{ + [MWMStorage enableCellularDownload:YES]; [ws updateNode:countryId onCancel:cancel]; } andCancelBlock:cancel]; } else { @@ -71,6 +73,7 @@ __weak __typeof(self) ws = self; if (error.code == kStorageCellularForbidden) { [[MWMAlertViewController activeAlertController] presentNoWiFiAlertWithOkBlock:^{ + [MWMStorage enableCellularDownload:YES]; [ws deleteNode:countryId]; } andCancelBlock:nil]; } else if (error.code == kStorageHaveUnsavedEdits) { @@ -90,6 +93,7 @@ if (error.code == kStorageCellularForbidden) { __weak __typeof(self) ws = self; [[MWMAlertViewController activeAlertController] presentNoWiFiAlertWithOkBlock:^{ + [MWMStorage enableCellularDownload:YES]; [ws downloadNodes:countryIds onSuccess:success]; } andCancelBlock:nil]; } else {