Commit b9cfc392 authored by clairehurst's avatar clairehurst 🌱 Committed by Pier Angelo Vendrame
Browse files

fixup! TB 40041: [android] Implement Tor Network Settings

Bug 45172: Move away from openToBrowserAndLoad()
parent 827047af
Loading
Loading
Loading
Loading
+3 −6
Changes for mobile/android/fenix/app/src/main/java/org/mozilla/fenix/settings/SettingsFragment.kt: 3 added lines, 6 removed lines.
Original line number Diff line number Diff line
@@ -842,12 +842,9 @@ class SettingsFragment : PreferenceFragmentCompat(), SystemInsetsPaddedFragment
        requirePreference<Preference>(R.string.pref_key_about_config_shortcut).apply {
            isVisible = requireContext().components.settings.showSecretDebugMenuThisSession || Config.channel == ReleaseChannel.Debug
            setOnPreferenceClickListener {
                @Suppress("DEPRECATION")
                (requireActivity() as HomeActivity).openToBrowserAndLoad(
                    searchTermOrURL = "about:config",
                    from = BrowserDirection.FromSettings,
                    newTab = true,
                )
                if ((requireActivity() as HomeActivity).maybeShowConnectToTorPrompt("about:config")) return@setOnPreferenceClickListener true
                findNavController().openToBrowser()
                components.useCases.fenixBrowserUseCases.loadUrlOrSearch("about:config", newTab = true)
                true
            }
        }