Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Applications
fenix
Commits
2193be27
Commit
2193be27
authored
Feb 18, 2021
by
Victor
Committed by
Mihai Adrian Carare
Feb 18, 2021
Browse files
Solves Leaks on SavedLoginFragment
disables options menu to avoid leak removes on click listener to avoid leak
parent
6908526a
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/org/mozilla/fenix/settings/logins/fragment/SavedLoginsFragment.kt
View file @
2193be27
...
...
@@ -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
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment