Commit 97d66cce authored by Jeff Boek's avatar Jeff Boek
Browse files

For #10504 - Creates the TabTrayDialogFragment

parent 9ce9fbc8
...@@ -99,6 +99,7 @@ import org.mozilla.fenix.home.sessioncontrol.viewholders.CollectionViewHolder ...@@ -99,6 +99,7 @@ import org.mozilla.fenix.home.sessioncontrol.viewholders.CollectionViewHolder
import org.mozilla.fenix.onboarding.FenixOnboarding import org.mozilla.fenix.onboarding.FenixOnboarding
import org.mozilla.fenix.settings.SupportUtils import org.mozilla.fenix.settings.SupportUtils
import org.mozilla.fenix.settings.deletebrowsingdata.deleteAndQuit import org.mozilla.fenix.settings.deletebrowsingdata.deleteAndQuit
import org.mozilla.fenix.tabtray.TabTrayDialogFragment
import org.mozilla.fenix.theme.ThemeManager import org.mozilla.fenix.theme.ThemeManager
import org.mozilla.fenix.utils.FragmentPreDrawManager import org.mozilla.fenix.utils.FragmentPreDrawManager
import org.mozilla.fenix.utils.Settings import org.mozilla.fenix.utils.Settings
...@@ -357,7 +358,8 @@ class HomeFragment : Fragment() { ...@@ -357,7 +358,8 @@ class HomeFragment : Fragment() {
view.tab_button.setOnClickListener { view.tab_button.setOnClickListener {
invokePendingDeleteJobs() invokePendingDeleteJobs()
hideOnboardingIfNeeded() hideOnboardingIfNeeded()
findNavController().navigate(HomeFragmentDirections.actionGlobalTabTrayFragment()) val tabTrayDialog = TabTrayDialogFragment()
tabTrayDialog.show(parentFragmentManager, null)
} }
PrivateBrowsingButtonView( PrivateBrowsingButtonView(
......
/* 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() {
}
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment