Commit a3cff2d9 authored by Felix Paul Kühne's avatar Felix Paul Kühne

Library View: reduce file size precision by dropping positions after the decimal point

parent d51d352b
......@@ -75,7 +75,7 @@
- (void)_updatedDisplayedInformation
{
self.titleLabel.text = self.mediaObject.title;
self.subtitleLabel.text = [NSString stringWithFormat:@"%@ — %.2f MB", [VLCTime timeWithNumber:[self.mediaObject duration]], [self.mediaObject fileSizeInBytes] / 1e6];
self.subtitleLabel.text = [NSString stringWithFormat:@"%@ — %i MB", [VLCTime timeWithNumber:[self.mediaObject duration]], (int)([self.mediaObject fileSizeInBytes] / 1e6)];
self.thumbnailView.image = self.mediaObject.computedThumbnail;
self.progressView.progress = self.mediaObject.lastPosition.floatValue;
......
......@@ -55,7 +55,7 @@
- (void)_updatedDisplayedInformation
{
self.titleLabel.text = self.mediaObject.title;
self.subtitleLabel.text = [NSString stringWithFormat:@"%@ — %.2f MB", [VLCTime timeWithNumber:[self.mediaObject duration]], [self.mediaObject fileSizeInBytes] / 1e6];
self.subtitleLabel.text = [NSString stringWithFormat:@"%@ — %i MB", [VLCTime timeWithNumber:[self.mediaObject duration]], (int)([self.mediaObject fileSizeInBytes] / 1e6)];
self.thumbnailView.image = self.mediaObject.computedThumbnail;
self.progressIndicator.progress = self.mediaObject.lastPosition.floatValue;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment