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

Fix corner-case in which the progress indicator wasn't displayed correctly

parent 69be1d6d
......@@ -79,9 +79,7 @@
self.thumbnailView.image = self.mediaObject.computedThumbnail;
self.progressView.progress = self.mediaObject.lastPosition.floatValue;
if (self.progressView.progress < 0.1f)
self.progressView.hidden = YES;
self.progressView.hidden = (self.progressView.progress < 0.1f) ? YES : NO;
self.mediaIsUnreadView.hidden = !self.mediaObject.unread.intValue;
[self setNeedsDisplay];
......
......@@ -66,9 +66,7 @@
self.thumbnailView.image = self.mediaObject.computedThumbnail;
self.progressIndicator.progress = self.mediaObject.lastPosition.floatValue;
if (self.progressIndicator.progress < 0.1f)
self.progressIndicator.hidden = YES;
self.progressIndicator.hidden = (self.progressIndicator.progress < 0.1f) ? YES : NO;
self.mediaIsUnreadView.hidden = !self.mediaObject.unread.intValue;
[self setNeedsDisplay];
......
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