2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-03 23:15:31 +00:00

[fenix] Solves Leaks on SavedLoginFragment

disables options menu to avoid leak
 removes on click listener to avoid leak
This commit is contained in:
Victor 2021-02-18 13:15:00 -03:00 committed by Mihai Adrian Carare
parent 67b9b6ff1d
commit dfab17947d

View File

@ -150,6 +150,8 @@ class SavedLoginsFragment : Fragment() {
toolbarChildContainer.visibility = View.GONE
(activity as HomeActivity).getSupportActionBarAndInflateIfNecessary().setDisplayShowTitleEnabled(true)
sortingStrategyMenu.menuController.dismiss()
sortLoginsMenuRoot.setOnClickListener(null)
setHasOptionsMenu(false)
redirectToReAuth(listOf(R.id.loginDetailFragment), findNavController().currentDestination?.id)
super.onPause()