Commit 306fc85a authored by clairehurst's avatar clairehurst 🌱 Committed by Pier Angelo Vendrame
Browse files

fixup! [android] Implement Android-native Connection Assist UI

Bug 43359: Improper handling of TorBootstrapChangeListener with respect to system onDestroy() calls for HomeActivity
parent 2ee51acd
Loading
Loading
Loading
Loading
+7 −6
Original line number Diff line number Diff line
@@ -659,14 +659,15 @@ open class HomeActivity : LocaleAwareAppCompatActivity(), NavHostActivity, TorIn
            // and not only the top Activity/Task. Therefore we kill the
            // underlying Application, as well.
            (application as FenixApplication).terminate()
        }

            if (settings().useHtmlConnectionUi) {
                val engine = components.core.engine
                if (engine is GeckoEngine) {
                    val torIntegration = engine.getTorIntegrationController()
                    torIntegration.unregisterBootstrapStateChangeListener(this)
                }
            }
        }
    }

    final override fun onConfigurationChanged(newConfig: Configuration) {
        super.onConfigurationChanged(newConfig)