Browse Source

library: hide playback position indicator if the user played more than 95% of the media, since playback will start-over anyway

Felix Paul Kühne 12 years ago
parent
commit
3d8a882a2c
2 changed files with 2 additions and 2 deletions
  1. 1 1
      AspenProject/VLCPlaylistGridView.m
  2. 1 1
      AspenProject/VLCPlaylistTableViewCell.m

+ 1 - 1
AspenProject/VLCPlaylistGridView.m

@@ -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];

+ 1 - 1
AspenProject/VLCPlaylistTableViewCell.m

@@ -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];