A couple of small fixes
This commit is contained in:
1 parent
7baa95141a
commit
5eefb9f6cd
4 files changed
+17
-17
No files matched your search
@@ -16,13 +16,7 @@ function OnContentSet() as void
|
||||
m.top.title = content.title
|
||||
m.top.thumbnailUri = content.thumbnail
|
||||
|
||||
if ValidInt(content.lengthSeconds) <> 0
|
||||
SetDurationText(content.lengthText)
|
||||
m.top.durationRectVisible = true
|
||||
else
|
||||
m.top.durationRectVisible = false
|
||||
end if
|
||||
|
||||
SetDurationText(content.lengthText)
|
||||
SetHighlight()
|
||||
end function
|
||||
|
||||
@@ -31,6 +25,12 @@ function OnIndexSet() as void
|
||||
end function
|
||||
|
||||
function SetDurationText(text as string) as void
|
||||
hasText = text <> ""
|
||||
m.top.durationRectVisible = hasText
|
||||
if not hasText
|
||||
return
|
||||
end if
|
||||
|
||||
m.top.duration = text
|
||||
|
||||
label = m.durationLabel
|
||||
|
||||
Reference in new issue
Block a user