|
|
@ -6,12 +6,10 @@ package org.mozilla.fenix.settings
|
|
|
|
|
|
|
|
|
|
|
|
import android.os.Bundle
|
|
|
|
import android.os.Bundle
|
|
|
|
import android.view.View
|
|
|
|
import android.view.View
|
|
|
|
import androidx.preference.PreferenceCategory
|
|
|
|
|
|
|
|
import androidx.preference.PreferenceFragmentCompat
|
|
|
|
import androidx.preference.PreferenceFragmentCompat
|
|
|
|
import org.mozilla.fenix.R
|
|
|
|
import org.mozilla.fenix.R
|
|
|
|
import org.mozilla.fenix.components.metrics.Event
|
|
|
|
import org.mozilla.fenix.components.metrics.Event
|
|
|
|
import org.mozilla.fenix.ext.components
|
|
|
|
import org.mozilla.fenix.ext.components
|
|
|
|
import org.mozilla.fenix.ext.settings
|
|
|
|
|
|
|
|
import org.mozilla.fenix.ext.showToolbar
|
|
|
|
import org.mozilla.fenix.ext.showToolbar
|
|
|
|
import org.mozilla.fenix.utils.view.addToRadioGroup
|
|
|
|
import org.mozilla.fenix.utils.view.addToRadioGroup
|
|
|
|
|
|
|
|
|
|
|
@ -51,10 +49,6 @@ class TabsSettingsFragment : PreferenceFragmentCompat() {
|
|
|
|
radioOneMonth = requirePreference(R.string.pref_key_close_tabs_after_one_month)
|
|
|
|
radioOneMonth = requirePreference(R.string.pref_key_close_tabs_after_one_month)
|
|
|
|
|
|
|
|
|
|
|
|
setupRadioGroups()
|
|
|
|
setupRadioGroups()
|
|
|
|
|
|
|
|
|
|
|
|
requirePreference<PreferenceCategory>(R.string.pref_key_tab_view_category).apply {
|
|
|
|
|
|
|
|
isVisible = context.settings().showGridViewInTabsSettings
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private fun setupRadioGroups() {
|
|
|
|
private fun setupRadioGroups() {
|
|
|
|