From 9e860c5b02355b9073be0fb23c33c44268fe6ebd Mon Sep 17 00:00:00 2001 From: Alexander Boriskov Date: Mon, 22 Jun 2020 13:17:07 +0300 Subject: [PATCH] [iOS] Added datasource to available maps when opening from child folder https://jira.mail.ru/browse/MAPSME-14142 --- iphone/Maps/UI/Downloader/DownloadMapsViewController.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/iphone/Maps/UI/Downloader/DownloadMapsViewController.swift b/iphone/Maps/UI/Downloader/DownloadMapsViewController.swift index 9e4a2610c0..6b2b24fd04 100644 --- a/iphone/Maps/UI/Downloader/DownloadMapsViewController.swift +++ b/iphone/Maps/UI/Downloader/DownloadMapsViewController.swift @@ -219,6 +219,9 @@ class DownloadMapsViewController: MWMViewController { @objc func onAddMaps() { let vc = storyboard!.instantiateViewController(ofType: DownloadMapsViewController.self) + if !dataSource.isRoot { + vc.dataSource = AvailableMapsDataSource(dataSource.parentAttributes().countryId) + } vc.mode = .available navigationController?.pushViewController(vc, animated: true) }