Pier Angelo Vendrame pushed to branch tor-browser-128.6.0esr-14.5-1 at The Tor Project / Applications / Tor Browser

Commits:

1 changed file:

Changes:

  • mobile/android/fenix/app/src/main/java/org/mozilla/fenix/HomeActivity.kt
    ... ... @@ -659,12 +659,13 @@ open class HomeActivity : LocaleAwareAppCompatActivity(), NavHostActivity, TorIn
    659 659
                 // and not only the top Activity/Task. Therefore we kill the
    
    660 660
                 // underlying Application, as well.
    
    661 661
                 (application as FenixApplication).terminate()
    
    662
    -        }
    
    663
    -
    
    664
    -        val engine = components.core.engine
    
    665
    -        if (engine is GeckoEngine) {
    
    666
    -            val torIntegration = engine.getTorIntegrationController()
    
    667
    -            torIntegration.unregisterBootstrapStateChangeListener(this)
    
    662
    +            if (settings().useHtmlConnectionUi) {
    
    663
    +                val engine = components.core.engine
    
    664
    +                if (engine is GeckoEngine) {
    
    665
    +                    val torIntegration = engine.getTorIntegrationController()
    
    666
    +                    torIntegration.unregisterBootstrapStateChangeListener(this)
    
    667
    +                }
    
    668
    +            }
    
    668 669
             }
    
    669 670
         }
    
    670 671