diff --git a/app/src/main/java/org/jellyfin/androidtv/ui/livetv/LiveTvGuideFragment.java b/app/src/main/java/org/jellyfin/androidtv/ui/livetv/LiveTvGuideFragment.java index 082dba49b6..fadc4ce21d 100644 --- a/app/src/main/java/org/jellyfin/androidtv/ui/livetv/LiveTvGuideFragment.java +++ b/app/src/main/java/org/jellyfin/androidtv/ui/livetv/LiveTvGuideFragment.java @@ -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(); }