Pier Angelo Vendrame pushed to branch firefox-android-115.2.1-13.5-1 at The Tor 
Project / Applications / firefox-android


Commits:
a61486e2 by Pier Angelo Vendrame at 2023-12-21T17:15:26+00:00
fixup! Add Tor integration and UI

Bug 42324: Onion location does not work after a browser restart

- - - - -


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:

=====================================
android-components/components/browser/engine-gecko/src/main/java/mozilla/components/browser/engine/gecko/GeckoEngine.kt
=====================================
@@ -798,11 +798,7 @@ class GeckoEngine(
             }
         override var prioritizeOnions: Boolean
             get() = runtime.settings.prioritizeOnions
-            set(value) {
-                value.let {
-                    runtime.settings.prioritizeOnions = it
-                }
-            }
+            set(value) { runtime.settings.prioritizeOnions = value }
     }.apply {
         defaultSettings?.let {
             this.javascriptEnabled = it.javascriptEnabled


=====================================
fenix/app/src/main/java/org/mozilla/fenix/settings/SettingsFragment.kt
=====================================
@@ -485,7 +485,9 @@ class SettingsFragment : PreferenceFragmentCompat() {
         }
 
         preferencePrioritizeOnions?.setOnPreferenceChangeListener<Boolean> { 
preference, newValue ->
-            
preference.context.components.core.engine.settings.prioritizeOnions = newValue
+            preference.context.settings().preferences.edit()
+                .putBoolean(preference.key, newValue).apply()
+            requireComponents.core.engine.settings.prioritizeOnions = newValue
             true
         }
 



View it on GitLab: 
https://gitlab.torproject.org/tpo/applications/firefox-android/-/commit/a61486e240b278dac4183557b183291d178adffc

-- 
View it on GitLab: 
https://gitlab.torproject.org/tpo/applications/firefox-android/-/commit/a61486e240b278dac4183557b183291d178adffc
You're receiving this email because of your account on gitlab.torproject.org.


_______________________________________________
tor-commits mailing list
tor-commits@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits

Reply via email to