diff --git a/iphone/Maps/UI/Downloader/Cells/MWMMapDownloaderTableViewCell.m b/iphone/Maps/UI/Downloader/Cells/MWMMapDownloaderTableViewCell.m index 19d5e409c8..96ec5d0dea 100644 --- a/iphone/Maps/UI/Downloader/Cells/MWMMapDownloaderTableViewCell.m +++ b/iphone/Maps/UI/Downloader/Cells/MWMMapDownloaderTableViewCell.m @@ -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: