|
|
|
@ -6,7 +6,9 @@ package org.mozilla.fenix.settings
|
|
|
|
|
|
|
|
|
|
import android.os.Bundle
|
|
|
|
|
import android.view.View
|
|
|
|
|
import androidx.preference.PreferenceCategory
|
|
|
|
|
import androidx.preference.PreferenceFragmentCompat
|
|
|
|
|
import org.mozilla.fenix.FeatureFlags
|
|
|
|
|
import org.mozilla.fenix.R
|
|
|
|
|
import org.mozilla.fenix.components.metrics.Event
|
|
|
|
|
import org.mozilla.fenix.ext.components
|
|
|
|
@ -56,10 +58,14 @@ class TabsSettingsFragment : PreferenceFragmentCompat() {
|
|
|
|
|
radioOneWeek = requirePreference(R.string.pref_key_close_tabs_after_one_week)
|
|
|
|
|
radioOneMonth = requirePreference(R.string.pref_key_close_tabs_after_one_month)
|
|
|
|
|
|
|
|
|
|
startOnHomeRadioFourHours = requirePreference(R.string.pref_key_start_on_home_after_four_hours)
|
|
|
|
|
startOnHomeRadioFourHours = requirePreference(R.string.pref_key_start_on_home_after_four_hours)
|
|
|
|
|
startOnHomeRadioAlways = requirePreference(R.string.pref_key_start_on_home_always)
|
|
|
|
|
startOnHomeRadioNever = requirePreference(R.string.pref_key_start_on_home_never)
|
|
|
|
|
|
|
|
|
|
requirePreference<PreferenceCategory>(R.string.pref_key_start_on_home_category).isVisible =
|
|
|
|
|
FeatureFlags.showStartOnHomeSettings
|
|
|
|
|
|
|
|
|
|
setupRadioGroups()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|