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

Pier Angelo Vendrame (@pierov) git at gitlab.torproject.org
Thu Dec 21 17:34:57 UTC 2023



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.


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


More information about the tbb-commits mailing list