I'm setting up a 'favorites' channel where users can add titles from other channels and they will show up in their favorites. I have it all working in the videoplayer example except for how to handle the case when they have no favorites. By default the user is left at a screen with a gray "Retrieving..." message.
In the showFeed.brs I was able to add a function called from load_show_feed, so that when "islist(xml.GetBody()) = false", a roMessageDialog is created with a message telling the user to add some favorites first.
The problem is that after that window exits, the user is left at a screen that simply says "Retrieving". I tried passing them back to the category screen with "displayCategoryPosterScreen" but it still drops them here.
Does anyone have any suggestions or ideas for how I could send them back to the category page in this situation?
tyvmia
ps, here is the function i tried to display the alert, called from 'load_show_feed'
Function alertFavorites() As Void
port = CreateObject("roMessagePort")
dialog = CreateObject("roMessageDialog")
dialog.SetMessagePort(port)
dialog.SetTitle("No Favorites Found")
dialog.SetText("Please add some titles to your favorites by visiting other categories first")
dialog.AddButton(1, "OK")
dialog.Show()
while true
dlgMsg = wait(0, dialog.GetMessagePort())
if type(dlgMsg) = "roMessageDialogEvent"
exit while
end if
end while
displayCategoryPosterScreen(0)
End Function
aspiring