Fix crash when clicking cover icon when episode is not loaded yet
This commit is contained in:
parent
4014951e9c
commit
0facf7ce6a
|
@ -369,6 +369,9 @@ public class ItemFragment extends Fragment {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void openPodcast() {
|
private void openPodcast() {
|
||||||
|
if (item == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
Fragment fragment = FeedItemlistFragment.newInstance(item.getFeedId());
|
Fragment fragment = FeedItemlistFragment.newInstance(item.getFeedId());
|
||||||
((MainActivity) getActivity()).loadChildFragment(fragment);
|
((MainActivity) getActivity()).loadChildFragment(fragment);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue