Skip to content

Commit

Permalink
Fix crash when favoriting Live TV program while loading additional ch…
Browse files Browse the repository at this point in the history
…annels in the guide
  • Loading branch information
nielsvanvelzen committed Jan 5, 2025
1 parent 3c315be commit 54a70e9
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,9 @@ private void load() {

public void refreshFavorite(UUID channelId){
for (int i = 0; i < mChannels.getChildCount(); i++) {
GuideChannelHeader gch = (GuideChannelHeader)mChannels.getChildAt(i);
View child = mChannels.getChildAt(i);
if (!(child instanceof GuideChannelHeader)) continue;
GuideChannelHeader gch = (GuideChannelHeader) child;
if (gch.getChannel().getId().equals(channelId.toString()))
gch.refreshFavorite();
}
Expand Down

0 comments on commit 54a70e9

Please sign in to comment.