Merge pull request #3113 from ByteHamster/fix-crash-npe

Fixed NPE
This commit is contained in:
H. Lehmann 2019-04-12 23:20:29 +02:00 committed by GitHub
commit 7c4d4656f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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();