forked from organicmaps/organicmaps
[new downloader][ios] Fixed build.
This commit is contained in:
parent
210178c9f3
commit
8ab5510ca0
4 changed files with 6 additions and 5 deletions
|
@ -209,7 +209,7 @@ extern NSString * const kSearchStateKey = @"SearchStateKey";
|
|||
[self updateTopController];
|
||||
NodeAttrs attrs;
|
||||
GetFramework().Storage().GetNodeAttrs(countryId, attrs);
|
||||
if (IsDownloadFailed(attrs.m_status))
|
||||
if (attrs.m_status == NodeStatus::Error)
|
||||
[self.downloadController setDownloadFailed];
|
||||
if (self.state == MWMSearchManagerStateTableSearch || self.state == MWMSearchManagerStateMapSearch)
|
||||
{
|
||||
|
@ -220,7 +220,7 @@ extern NSString * const kSearchStateKey = @"SearchStateKey";
|
|||
}
|
||||
}
|
||||
|
||||
- (void)processCountry:(storage::TCountryId const &)countryId progress:(storage::LocalAndRemoteSizeT const &)progress
|
||||
- (void)processCountry:(storage::TCountryId const &)countryId progress:(storage::TLocalAndRemoteSize const &)progress
|
||||
{
|
||||
using namespace storage;
|
||||
CGFloat const normProgress = (CGFloat)progress.first / progress.second;
|
||||
|
|
|
@ -158,7 +158,7 @@ void loopWrappers(TObservers * observers, TLoopBlock block)
|
|||
[observer processCountryEvent:countryId];
|
||||
});
|
||||
},
|
||||
[observers](storage::TCountryId const & countryId, storage::LocalAndRemoteSizeT const & progress)
|
||||
[observers](storage::TCountryId const & countryId, storage::TLocalAndRemoteSize const & progress)
|
||||
{
|
||||
loopWrappers(observers, ^(TStorageObserver observer)
|
||||
{
|
||||
|
|
|
@ -38,6 +38,7 @@
|
|||
|
||||
@optional
|
||||
|
||||
- (void)processCountry:(storage::TCountryId const &)countryId progress:(storage::LocalAndRemoteSizeT const &)progress;
|
||||
- (void)processCountry:(storage::TCountryId const &)countryId progress:(storage::TLocalAndRemoteSize const &)progress;
|
||||
|
||||
@end
|
||||
|
||||
|
|
|
@ -89,7 +89,7 @@ static int gStorageSubscriptionId = kNotSubscribed;
|
|||
});
|
||||
[Alohalytics logEvent:kDownloadedSecondMapEvent];
|
||||
}
|
||||
}, [](storage::TCountryId const &, storage::LocalAndRemoteSizeT const &){});
|
||||
}, [](storage::TCountryId const &, storage::TLocalAndRemoteSize const &){});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue