2
0
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:
mcarare 2021-03-02 16:08:19 +02:00 committed by Mihai Adrian Carare
parent dda03dbf69
commit f258306c0d

View File

@ -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)