Commit 3d8a882a authored by Felix Paul Kühne's avatar Felix Paul Kühne

library: hide playback position indicator if the user played more than 95% of...

library: hide playback position indicator if the user played more than 95% of the media, since playback will start-over anyway
parent 3bea1e88
......@@ -81,7 +81,7 @@
self.thumbnailView.image = self.mediaObject.computedThumbnail;
self.progressView.progress = self.mediaObject.lastPosition.floatValue;
self.progressView.hidden = (self.progressView.progress < 0.1f) ? YES : NO;
self.progressView.hidden = (self.progressView.progress < .1f || .95f) ? YES : NO;
self.mediaIsUnreadView.hidden = !self.mediaObject.unread.intValue;
[self setNeedsDisplay];
......
......@@ -61,7 +61,7 @@
self.thumbnailView.image = self.mediaObject.computedThumbnail;
self.progressIndicator.progress = self.mediaObject.lastPosition.floatValue;
self.progressIndicator.hidden = (self.progressIndicator.progress < 0.1f) ? YES : NO;
self.progressIndicator.hidden = (self.progressIndicator.progress < .1f || .95f) ? 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