@ -8,7 +8,6 @@ import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.appcompat.app.AppCompatActivity
import androidx.preference.PreferenceFragmentCompat
import androidx.preference.PreferenceFragmentCompat
import androidx.preference.SwitchPreference
import androidx.preference.SwitchPreference
import org.mozilla.fenix.FeatureFlags
import org.mozilla.fenix.R
import org.mozilla.fenix.R
import org.mozilla.fenix.ext.components
import org.mozilla.fenix.ext.components
import org.mozilla.fenix.ext.getPreferenceKey
import org.mozilla.fenix.ext.getPreferenceKey
@ -29,9 +28,7 @@ class AccessibilityFragment : PreferenceFragmentCompat() {
val forceZoomPreference = findPreference < SwitchPreference > (
val forceZoomPreference = findPreference < SwitchPreference > (
getPreferenceKey ( R . string . pref _key _accessibility _force _enable _zoom )
getPreferenceKey ( R . string . pref _key _accessibility _force _enable _zoom )
)
)
forceZoomPreference ?. isVisible = FeatureFlags . forceZoomPreference
if ( FeatureFlags . forceZoomPreference ) {
forceZoomPreference ?. setOnPreferenceChangeListener < Boolean > { preference , shouldForce ->
forceZoomPreference ?. setOnPreferenceChangeListener < Boolean > { preference , shouldForce ->
val settings = preference . context . settings ( )
val settings = preference . context . settings ( )
val components = preference . context . components
val components = preference . context . components
@ -41,7 +38,6 @@ class AccessibilityFragment : PreferenceFragmentCompat() {
true
true
}
}
}
val textSizePreference = findPreference < TextPercentageSeekBarPreference > (
val textSizePreference = findPreference < TextPercentageSeekBarPreference > (
getPreferenceKey ( R . string . pref _key _accessibility _font _scale )
getPreferenceKey ( R . string . pref _key _accessibility _font _scale )