forked from organicmaps/organicmaps
[new downloader][ios] Fixed build.
This commit is contained in:
parent
4e1f349b7d
commit
46105c0a12
4 changed files with 8 additions and 5 deletions
|
@ -311,7 +311,7 @@
|
|||
{
|
||||
auto & s = GetFramework().Storage();
|
||||
storage::Storage::UpdateInfo updateInfo{};
|
||||
s.GetUpdateInfo(s.GetRootId(), updateInfo);
|
||||
s.GetUpdateInfo(updateInfo);
|
||||
self.downloadBadge.hidden = (updateInfo.m_numberOfMwmFilesToUpdate == 0);
|
||||
}
|
||||
|
||||
|
|
|
@ -280,7 +280,7 @@ typedef NS_ENUM(NSUInteger, MWMBottomMenuViewCell)
|
|||
{
|
||||
auto & s = GetFramework().Storage();
|
||||
storage::Storage::UpdateInfo updateInfo{};
|
||||
s.GetUpdateInfo(s.GetRootId(), updateInfo);
|
||||
s.GetUpdateInfo(updateInfo);
|
||||
[cell configureWithImageName:@"ic_menu_download"
|
||||
label:L(@"download_maps")
|
||||
badgeCount:updateInfo.m_numberOfMwmFilesToUpdate];
|
||||
|
|
|
@ -59,9 +59,12 @@ using namespace storage;
|
|||
self.showAllMapsView = NO;
|
||||
auto const & s = GetFramework().Storage();
|
||||
Storage::UpdateInfo updateInfo{};
|
||||
if (!s.GetUpdateInfo(s.GetRootId(), updateInfo) || updateInfo.m_numberOfMwmFilesToUpdate == 0)
|
||||
if (!s.GetUpdateInfo(updateInfo) || updateInfo.m_numberOfMwmFilesToUpdate == 0)
|
||||
return;
|
||||
self.allMapsLabel.text = [NSString stringWithFormat:@"%@: %@ (%@)", L(@"downloader_outdated_maps"), @(updateInfo.m_numberOfMwmFilesToUpdate), formattedSize(updateInfo.m_totalUpdateSizeInBytes)];
|
||||
self.allMapsLabel.text =
|
||||
[NSString stringWithFormat:@"%@: %@ (%@)", L(@"downloader_outdated_maps"),
|
||||
@(updateInfo.m_numberOfMwmFilesToUpdate),
|
||||
formattedSize(updateInfo.m_totalUpdateSizeInBytes)];
|
||||
self.showAllMapsView = YES;
|
||||
}
|
||||
|
||||
|
|
|
@ -794,7 +794,7 @@ using namespace osm_auth_ios;
|
|||
{
|
||||
auto & s = GetFramework().Storage();
|
||||
storage::Storage::UpdateInfo updateInfo{};
|
||||
s.GetUpdateInfo(s.GetRootId(), updateInfo);
|
||||
s.GetUpdateInfo(updateInfo);
|
||||
[UIApplication sharedApplication].applicationIconBadgeNumber = updateInfo.m_numberOfMwmFilesToUpdate;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue