2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-05 21:20:45 +00:00

For #10504 - Creates the TabTrayDialogFragment

This commit is contained in:
Jeff Boek 2020-05-20 19:57:47 -07:00
parent 9ce9fbc889
commit 97d66cce56
2 changed files with 14 additions and 1 deletions

View File

@ -99,6 +99,7 @@ import org.mozilla.fenix.home.sessioncontrol.viewholders.CollectionViewHolder
import org.mozilla.fenix.onboarding.FenixOnboarding
import org.mozilla.fenix.settings.SupportUtils
import org.mozilla.fenix.settings.deletebrowsingdata.deleteAndQuit
import org.mozilla.fenix.tabtray.TabTrayDialogFragment
import org.mozilla.fenix.theme.ThemeManager
import org.mozilla.fenix.utils.FragmentPreDrawManager
import org.mozilla.fenix.utils.Settings
@ -357,7 +358,8 @@ class HomeFragment : Fragment() {
view.tab_button.setOnClickListener {
invokePendingDeleteJobs()
hideOnboardingIfNeeded()
findNavController().navigate(HomeFragmentDirections.actionGlobalTabTrayFragment())
val tabTrayDialog = TabTrayDialogFragment()
tabTrayDialog.show(parentFragmentManager, null)
}
PrivateBrowsingButtonView(

View File

@ -0,0 +1,11 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package org.mozilla.fenix.tabtray
import androidx.appcompat.app.AppCompatDialogFragment
class TabTrayDialogFragment : AppCompatDialogFragment() {
}