mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-03 23:15:31 +00:00
[fenix] For https://github.com/mozilla-mobile/fenix/issues/18228: Populate menu options in onResume along with toolbar init.
This commit is contained in:
parent
dda03dbf69
commit
f258306c0d
@ -64,11 +64,6 @@ class SavedLoginsFragment : Fragment() {
|
||||
initToolbar()
|
||||
}
|
||||
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
super.onCreate(savedInstanceState)
|
||||
setHasOptionsMenu(true)
|
||||
}
|
||||
|
||||
override fun onCreateView(
|
||||
inflater: LayoutInflater,
|
||||
container: ViewGroup?,
|
||||
@ -164,6 +159,7 @@ class SavedLoginsFragment : Fragment() {
|
||||
) = (activity as HomeActivity).openToBrowserAndLoad(searchTermOrURL, newTab, from)
|
||||
|
||||
private fun initToolbar() {
|
||||
setHasOptionsMenu(true)
|
||||
showToolbar(getString(R.string.preferences_passwords_saved_logins))
|
||||
(activity as HomeActivity).getSupportActionBarAndInflateIfNecessary()
|
||||
.setDisplayShowTitleEnabled(false)
|
||||
|
Loading…
Reference in New Issue
Block a user