1
0
Fork 0

For 10731 - Don't show tab tray menu if there are no tabs

master
David Walsh 2020-05-18 13:33:41 -05:00 committed by Jeff Boek
parent 535e020683
commit 2795a34b0b
1 changed files with 2 additions and 0 deletions

View File

@ -285,6 +285,8 @@ class TabTrayFragment : Fragment(R.layout.fragment_tab_tray), TabsTray.Observer,
view?.tabsTray?.asView()?.isVisible = !hasNoTabs
view?.save_to_collection_button?.isVisible = !hasNoTabs && !isPrivate
setHasOptionsMenu(!hasNoTabs)
if (hasNoTabs) {
view?.announceForAccessibility(view?.context?.getString(R.string.no_open_tabs_description))
}