Fix the crash that occurs on navigating back to the main fragment.

This commit is contained in:
Isira Seneviratne 2021-01-15 06:45:07 +05:30
parent 1cc9179f39
commit 9e61da1398
4 changed files with 33 additions and 25 deletions

View file

@ -117,11 +117,6 @@ public class MainFragment extends BaseFragment implements TabLayout.OnTabSelecte
public void onDestroy() {
super.onDestroy();
tabsManager.unsetSavedTabsListener();
}
@Override
public void onDestroyView() {
super.onDestroyView();
if (binding != null) {
binding.pager.setAdapter(null);
binding = null;