Commit 2193be27 authored by Victor's avatar Victor Committed by Mihai Adrian Carare
Browse files

Solves Leaks on SavedLoginFragment

 disables options menu to avoid leak
 removes on click listener to avoid leak
parent 6908526a
......@@ -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()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment