forked from organicmaps/organicmaps
[ios] Removed redundant table reloads.
This commit is contained in:
parent
bc6b945b31
commit
0d031b8266
2 changed files with 3 additions and 2 deletions
|
@ -81,7 +81,7 @@ namespace
|
|||
self.downloadSize.text = formattedSize(haveDownloadingCountries ? nodeAttrs.m_downloadingMwmSize : nodeAttrs.m_mwmSize);
|
||||
}
|
||||
|
||||
- (void)configProgress:(const storage::NodeAttrs &)nodeAttrs
|
||||
- (void)configProgress:(storage::NodeAttrs const &)nodeAttrs
|
||||
{
|
||||
MWMCircularProgress * progress = self.progress;
|
||||
switch (nodeAttrs.m_status)
|
||||
|
|
|
@ -41,7 +41,8 @@ using namespace storage;
|
|||
[super reload];
|
||||
|
||||
NSInteger const closestCoutriesCountAfterUpdate = self.nearmeCountries.count;
|
||||
if (closestCoutriesCountBeforeUpdate == 0 || closestCoutriesCountAfterUpdate == 0)
|
||||
if (closestCoutriesCountBeforeUpdate != closestCoutriesCountAfterUpdate &&
|
||||
(closestCoutriesCountBeforeUpdate == 0 || closestCoutriesCountAfterUpdate == 0))
|
||||
self.needFullReload = YES;
|
||||
if (self.needFullReload)
|
||||
return;
|
||||
|
|
Loading…
Add table
Reference in a new issue