Skip to content

Commit

Permalink
Fix mem leak in MenuFragment
Browse files Browse the repository at this point in the history
  • Loading branch information
meiron03 committed Aug 31, 2024
1 parent 03dc7a7 commit 661a903
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 661a903

Please sign in to comment.