parent
d28bb76d25
commit
74111c75de
|
@ -56,7 +56,6 @@ class Core(private val context: Context) {
|
|||
|
||||
if (!Settings.getInstance(context).shouldUseAutoSize) {
|
||||
runtimeSettings.automaticFontSizeAdjustment = false
|
||||
runtimeSettings.fontInflationEnabled = true
|
||||
val fontSize = Settings.getInstance(context).fontSizeFactor
|
||||
runtimeSettings.fontSizeFactor = fontSize
|
||||
}
|
||||
|
|
|
@ -40,7 +40,6 @@ class AccessibilityFragment : PreferenceFragmentCompat() {
|
|||
Settings.getInstance(context!!).setAutoSize(newValue as Boolean)
|
||||
requireComponents.core.engine.settings.automaticFontSizeAdjustment = newValue
|
||||
if (!newValue) {
|
||||
requireComponents.core.engine.settings.fontInflationEnabled = true
|
||||
requireComponents.core.engine.settings.fontSizeFactor = Settings.getInstance(context!!).fontSizeFactor
|
||||
}
|
||||
textSizePreference?.isVisible = !newValue
|
||||
|
|
Loading…
Reference in New Issue