Fixed NPE
This commit is contained in:
parent
3f1e6b5d50
commit
8284251a91
|
@ -353,13 +353,13 @@ public class AllEpisodesFragment extends Fragment {
|
||||||
}
|
}
|
||||||
emptyView.setVisibility(View.GONE);
|
emptyView.setVisibility(View.GONE);
|
||||||
recyclerView.setVisibility(View.VISIBLE);
|
recyclerView.setVisibility(View.VISIBLE);
|
||||||
|
listAdapter.notifyDataSetChanged();
|
||||||
} else {
|
} else {
|
||||||
listAdapter = null;
|
listAdapter = null;
|
||||||
recyclerView.setVisibility(View.GONE);
|
recyclerView.setVisibility(View.GONE);
|
||||||
emptyView.setVisibility(View.VISIBLE);
|
emptyView.setVisibility(View.VISIBLE);
|
||||||
}
|
}
|
||||||
|
|
||||||
listAdapter.notifyDataSetChanged();
|
|
||||||
restoreScrollPosition();
|
restoreScrollPosition();
|
||||||
getActivity().supportInvalidateOptionsMenu();
|
getActivity().supportInvalidateOptionsMenu();
|
||||||
updateShowOnlyEpisodesListViewState();
|
updateShowOnlyEpisodesListViewState();
|
||||||
|
|
Loading…
Reference in New Issue