Pier Angelo Vendrame pushed to branch firefox-android-115.2.1-13.0-1 at The Tor Project / Applications / firefox-android
Commits:
-
dadeaa78
by Pier Angelo Vendrame at 2024-01-09T14:20:36+01:00
2 changed files:
- android-components/components/browser/engine-gecko/src/main/java/mozilla/components/browser/engine/gecko/GeckoEngine.kt
- fenix/app/src/main/java/org/mozilla/fenix/settings/SettingsFragment.kt
Changes:
... | ... | @@ -798,11 +798,7 @@ class GeckoEngine( |
798 | 798 | }
|
799 | 799 | override var prioritizeOnions: Boolean
|
800 | 800 | get() = runtime.settings.prioritizeOnions
|
801 | - set(value) {
|
|
802 | - value.let {
|
|
803 | - runtime.settings.prioritizeOnions = it
|
|
804 | - }
|
|
805 | - }
|
|
801 | + set(value) { runtime.settings.prioritizeOnions = value }
|
|
806 | 802 | }.apply {
|
807 | 803 | defaultSettings?.let {
|
808 | 804 | this.javascriptEnabled = it.javascriptEnabled
|
... | ... | @@ -485,7 +485,9 @@ class SettingsFragment : PreferenceFragmentCompat() { |
485 | 485 | }
|
486 | 486 | |
487 | 487 | preferencePrioritizeOnions?.setOnPreferenceChangeListener<Boolean> { preference, newValue ->
|
488 | - preference.context.components.core.engine.settings.prioritizeOnions = newValue
|
|
488 | + preference.context.settings().preferences.edit()
|
|
489 | + .putBoolean(preference.key, newValue).apply()
|
|
490 | + requireComponents.core.engine.settings.prioritizeOnions = newValue
|
|
489 | 491 | true
|
490 | 492 | }
|
491 | 493 |