[tbb-commits] [Git][tpo/applications/firefox-android][firefox-android-115.2.1-13.0-1] fixup! Add Tor integration and UI

Pier Angelo Vendrame (@pierov) git at gitlab.torproject.org
Tue Jan 9 13:20:45 UTC 2024



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
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/dadeaa78a62f166eebbeb100f43ab73ba9ba995e

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


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.torproject.org/pipermail/tbb-commits/attachments/20240109/300cdc57/attachment-0001.htm>


More information about the tbb-commits mailing list