forked from organicmaps/organicmaps
[iOS] Fixed spinner progress animation in mapdownloader
https://jira.mail.ru/browse/MAPSME-12872
This commit is contained in:
parent
c0af2c0c8e
commit
5c8222ec9f
1 changed files with 3 additions and 3 deletions
|
@ -91,8 +91,8 @@
|
|||
|
||||
- (void)configProgress:(MWMMapNodeAttributes *)nodeAttrs {
|
||||
MWMCircularProgress *progress = self.progress;
|
||||
MWMButtonColoring coloring =
|
||||
self.mode == MWMMapDownloaderModeDownloaded ? MWMButtonColoringBlack : MWMButtonColoringBlue;
|
||||
BOOL isModeDownloaded = self.mode == MWMMapDownloaderModeDownloaded;
|
||||
MWMButtonColoring coloring = isModeDownloaded ? MWMButtonColoringBlack : MWMButtonColoringBlue;
|
||||
switch (nodeAttrs.nodeStatus) {
|
||||
case MWMMapNodeStatusNotDownloaded:
|
||||
case MWMMapNodeStatusPartly: {
|
||||
|
@ -103,7 +103,7 @@
|
|||
break;
|
||||
}
|
||||
case MWMMapNodeStatusDownloading:
|
||||
progress.progress = kMaxProgress * nodeAttrs.downloadedSize / nodeAttrs.totalSize;
|
||||
progress.progress = kMaxProgress * nodeAttrs.downloadedSize / (isModeDownloaded ? nodeAttrs.totalUpdateSizeBytes : nodeAttrs.totalSize - nodeAttrs.downloadingSize);
|
||||
break;
|
||||
case MWMMapNodeStatusApplying:
|
||||
case MWMMapNodeStatusInQueue:
|
||||
|
|
Loading…
Add table
Reference in a new issue