Skip to content

Commit

Permalink
Updated "OnNow" home row to default to channel images if program imag…
Browse files Browse the repository at this point in the history
…es are not availible
  • Loading branch information
candry7731 committed Jan 19, 2023
1 parent f591b54 commit 82c1561
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions components/home/HomeItem.brs
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,12 @@ sub itemContentChanged()
' "Program" is from clicking on an "On Now" item on the Home Screen
if itemData.type = "Program"
m.itemText.Text = itemData.json.name
if itemData.json.ImageURL <> invalid
m.itemPoster.uri = itemData.json.ImageURL
m.itemTextExtra.Text = itemData.json.ChannelName
if itemData.widePosterURL <> ""
m.itemPoster.uri = ImageURL(itemData.widePosterURL)
else
m.itemPoster.uri = ImageURL(itemData.json.ChannelId)
m.itemPoster.loadDisplayMode = "scaleToFill"
end if

' Set Episode title if available
Expand Down

0 comments on commit 82c1561

Please sign in to comment.