Fixed NPE

This commit is contained in:
ByteHamster 2019-04-12 23:17:09 +02:00
parent 3f1e6b5d50
commit 8284251a91
1 changed files with 1 additions and 1 deletions

View File

@ -353,13 +353,13 @@ public class AllEpisodesFragment extends Fragment {
}
emptyView.setVisibility(View.GONE);
recyclerView.setVisibility(View.VISIBLE);
listAdapter.notifyDataSetChanged();
} else {
listAdapter = null;
recyclerView.setVisibility(View.GONE);
emptyView.setVisibility(View.VISIBLE);
}
listAdapter.notifyDataSetChanged();
restoreScrollPosition();
getActivity().supportInvalidateOptionsMenu();
updateShowOnlyEpisodesListViewState();