Commit c5d69bc4 authored by brizental's avatar brizental Committed by henry
Browse files

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

Had to comment out other references to the "Open Links in Apps" settings
screen due to https://bugzilla.mozilla.org/show_bug.cgi?id=1990028
parent b197b979
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -20,7 +20,6 @@ class OpenLinksInAppsFragment : PreferenceFragmentCompat() {
    private lateinit var radioAlways: RadioButtonPreference
    private lateinit var radioAskBeforeOpening: RadioButtonPreference
    private lateinit var radioNever: RadioButtonPreference
    private val args by navArgs<OpenLinksInAppsFragmentArgs>()

    override fun onCreatePreferences(savedInstanceState: Bundle?, rootKey: String?) {
        setPreferencesFromResource(R.xml.open_links_in_apps_preferences, rootKey)
@@ -38,9 +37,6 @@ class OpenLinksInAppsFragment : PreferenceFragmentCompat() {
        showToolbar(getString(R.string.preferences_open_links_in_apps))

        setupPreferences()
        args.preferenceToScrollTo?.let {
            scrollToPreference(it)
        }
    }

    private fun setupPreferences() {
+0 −1
Original line number Diff line number Diff line
@@ -312,7 +312,6 @@ class DefaultFenixSettingsIndexer(private val context: Context) : SettingsIndexe
            PreferenceFileInformation.DefaultSearchEnginePreferences,
            PreferenceFileInformation.DownloadsSettingsPreferences,
            PreferenceFileInformation.HomePreferences,
            PreferenceFileInformation.OpenLinksInAppsPreferences,
            PreferenceFileInformation.PrivateBrowsingPreferences,
            PreferenceFileInformation.SearchSettingsPreferences,
            PreferenceFileInformation.SiteSettingsPreferences,
+0 −10
Original line number Diff line number Diff line
@@ -93,16 +93,6 @@ sealed class PreferenceFileInformation(
        fragmentId = R.id.homeSettingsFragment,
    )

    /**
     * Represents the "Open Links in Apps" settings screen.
     */
    object OpenLinksInAppsPreferences : PreferenceFileInformation(
        xmlResourceId = R.xml.open_links_in_apps_preferences,
        topBreadcrumbResourceId = R.string.preferences_open_links_in_apps,
        categoryHeaderResourceId = R.string.preferences_category_advanced,
        fragmentId = R.id.openLinksInAppsFragment,
    )

    /**
     * Represents the "Private Browsing" settings screen.
     */