diff --git a/PennMobile/src/main/java/com/pennapps/labs/pennmobile/MenuFragment.kt b/PennMobile/src/main/java/com/pennapps/labs/pennmobile/MenuFragment.kt index f9e34fd6..5fc59b81 100644 --- a/PennMobile/src/main/java/com/pennapps/labs/pennmobile/MenuFragment.kt +++ b/PennMobile/src/main/java/com/pennapps/labs/pennmobile/MenuFragment.kt @@ -134,6 +134,11 @@ class MenuFragment : Fragment() { } override fun onDestroyView() { + if (view != null) { + val pager: ViewPager = requireView().findViewById(R.id.menu_pager) + pager.adapter = null + } + super.onDestroyView() mActivity.removeTabs() if (mActivity.supportActionBar != null) {