[iOS] Fixed downloading progress

This commit is contained in:
Zoia Pribytkova 2019-08-08 17:58:31 +03:00 committed by Aleksey Belousov
parent f572b2fa79
commit 626f268ac2

View file

@ -252,7 +252,7 @@ using namespace storage;
- (void)showDownloading:(CGFloat)progress {
self.nodeSize.textColor = [UIColor blackSecondaryText];
self.nodeSize.text =
[NSString stringWithFormat:@"%@ %@%%", L(@"downloader_downloading"), @((NSInteger)progress * 100)];
[NSString stringWithFormat:@"%@ %@%%", L(@"downloader_downloading"), @((NSInteger)(progress * 100.f))];
self.downloadButton.hidden = YES;
self.progressWrapper.hidden = NO;
self.progress.progress = progress;