fixed memory leak

This commit is contained in:
Ritvik Saraf 2019-03-12 06:07:56 +05:30
parent 369fd95e2b
commit fdf0d8e9c8
1 changed files with 2 additions and 0 deletions

View File

@ -111,6 +111,8 @@ public class MainFragment extends BaseFragment implements TabLayout.OnTabSelecte
public void onDestroy() {
super.onDestroy();
tabsManager.unsetSavedTabsListener();
pagerAdapter = null;
viewPager.setAdapter(pagerAdapter);
}
/*//////////////////////////////////////////////////////////////////////////