[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



Title: GitLab

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:

Changes:

  • android-components/components/browser/engine-gecko/src/main/java/mozilla/components/browser/engine/gecko/GeckoEngine.kt
    ... ... @@ -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._javascript_Enabled = it._javascript_Enabled
    

  • fenix/app/src/main/java/org/mozilla/fenix/settings/SettingsFragment.kt
    ... ... @@ -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
     
    

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