From 3d46289714711aa5edeaae15113a131f34678000 Mon Sep 17 00:00:00 2001 From: Ilya Grechuhin Date: Mon, 21 Mar 2016 13:16:38 +0300 Subject: [PATCH] [ios] Fixed downloader crash. --- .../DataSources/MWMMapDownloaderDefaultDataSource.mm | 1 + 1 file changed, 1 insertion(+) diff --git a/iphone/Maps/Classes/MapDownloader/DataSources/MWMMapDownloaderDefaultDataSource.mm b/iphone/Maps/Classes/MapDownloader/DataSources/MWMMapDownloaderDefaultDataSource.mm index d0c91d5291..abcd30d92d 100644 --- a/iphone/Maps/Classes/MapDownloader/DataSources/MWMMapDownloaderDefaultDataSource.mm +++ b/iphone/Maps/Classes/MapDownloader/DataSources/MWMMapDownloaderDefaultDataSource.mm @@ -85,6 +85,7 @@ using namespace storage; NSInteger const downloadedCountriesCountAfterUpdate = self.downloadedCountries.count; self.needFullReload = (downloadedCountriesCountBeforeUpdate == 0 || downloadedCountriesCountAfterUpdate == 0 || + availableCountriesBeforeUpdate.count != self.availableCountries.count || availableCountriesBeforeUpdate.count == 0); if (self.needFullReload) return;