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

(cherry picked from commit 54a70e9)
  • Loading branch information
nielsvanvelzen committed Jan 6, 2025
1 parent 0912212 commit 8350fae
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 8350fae

Please sign in to comment.