Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
VideoLAN
VLC-iOS
Commits
c51a4a6f
Commit
c51a4a6f
authored
Oct 10, 2013
by
Felix Paul Kühne
Browse files
iOS 7 library: display remaining time instead of played time
parent
dfd0f330
Changes
1
Hide whitespace changes
Inline
Side-by-side
AspenProject/VLCPlaylistTableViewCell.m
View file @
c51a4a6f
...
...
@@ -237,7 +237,7 @@
if
(
SYSTEM_RUNS_IN_THE_FUTURE
)
{
if
(
position
>
.
1
f
&&
position
<
.
95
f
)
{
[(
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
]]];
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment