1
0
Fork 0

For #13052 - When opening a new tab pre-open search

master
Jeff Boek 2020-08-06 16:51:58 -07:00
parent c4d32bd75c
commit 540c1d2ada
1 changed files with 7 additions and 1 deletions

View File

@ -383,8 +383,10 @@ class HomeFragment : Fragment() {
}
}
val args by navArgs<HomeFragmentArgs>()
if (view.context.settings().accessibilityServicesEnabled &&
bundleArgs.getBoolean(FOCUS_ON_ADDRESS_BAR)
args.focusOnAddressBar
) {
// We cannot put this in the fragment_home.xml file as it breaks tests
view.toolbar_wrapper.isFocusableInTouchMode = true
@ -413,6 +415,10 @@ class HomeFragment : Fragment() {
}
updateTabCounter(requireComponents.core.store.state)
if (args.focusOnAddressBar && requireContext().settings().useNewSearchExperience) {
navigateToSearch()
}
}
private fun removeAllTabsAndShowSnackbar(sessionCode: String) {