Browse Source

iOS 7 library: display remaining time instead of played time

Felix Paul Kühne 11 years ago
parent
commit
c51a4a6f8c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      AspenProject/VLCPlaylistTableViewCell.m

+ 1 - 1
AspenProject/VLCPlaylistTableViewCell.m

@@ -237,7 +237,7 @@
 
     if (SYSTEM_RUNS_IN_THE_FUTURE) {
         if (position > .1f && position < .95f) {
-            [(UITextView*)self.mediaIsUnreadView setText:[NSString stringWithFormat:NSLocalizedString(@"LIBRARY_MINUTES_LEFT", @""), [[VLCTime timeWithInt:(mediaFile.duration.floatValue * position)] minuteStringValue]]];
+            [(UITextView*)self.mediaIsUnreadView setText:[NSString stringWithFormat:NSLocalizedString(@"LIBRARY_MINUTES_LEFT", @""), [[VLCTime timeWithInt:(mediaFile.duration.floatValue * position - mediaFile.duration.floatValue)] minuteStringValue]]];
             self.mediaIsUnreadView.hidden = NO;
         } else if (mediaFile.unread.intValue) {
             [(UILabel *)self.mediaIsUnreadView setText:[NSLocalizedString(@"NEW", @"") capitalizedStringWithLocale:[NSLocale currentLocale]]];