2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-03 23:15:31 +00:00

[fenix] For https://github.com/mozilla-mobile/fenix/issues/8735 - Adjust fontInflation engine setting when toggling useAutoSize

This commit is contained in:
ekager 2020-04-17 15:32:07 -07:00 committed by Mihai Adrian
parent fc7b0606c7
commit fbbc270ddf

View File

@ -67,6 +67,7 @@ class AccessibilityFragment : PreferenceFragmentCompat() {
// Save the new setting value // Save the new setting value
settings.shouldUseAutoSize = useAutoSize settings.shouldUseAutoSize = useAutoSize
components.core.engine.settings.automaticFontSizeAdjustment = useAutoSize components.core.engine.settings.automaticFontSizeAdjustment = useAutoSize
components.core.engine.settings.fontInflationEnabled = useAutoSize
// If using manual sizing, update the engine settings with the local saved setting // If using manual sizing, update the engine settings with the local saved setting
if (!useAutoSize) { if (!useAutoSize) {