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

fixup! [android] Add standalone Tor Bootstrap

Bug 43360: Replace custom variable isBeingRecreated with built-in isFinishing function
parent 8e5e2d5c
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -176,8 +176,6 @@ open class HomeActivity : LocaleAwareAppCompatActivity(), NavHostActivity, TorIn

    private var isToolbarInflated = false

    private var isBeingRecreated = false

    private val webExtensionPopupObserver by lazy {
        WebExtensionPopupObserver(components.core.store, ::openPopup)
    }
@@ -652,7 +650,7 @@ open class HomeActivity : LocaleAwareAppCompatActivity(), NavHostActivity, TorIn
            stopMediaSession()
        }

        if (!isBeingRecreated && !(application as FenixApplication).isTerminating()) {
        if (isFinishing && !(application as FenixApplication).isTerminating()) {
            // We assume the Activity is being destroyed because the user
            // swiped away the app on the Recent screen. When this happens,
            // we assume the user expects the entire Application is destroyed
@@ -686,8 +684,6 @@ open class HomeActivity : LocaleAwareAppCompatActivity(), NavHostActivity, TorIn
            message = "recreate()",
        )

        isBeingRecreated = true

        super.recreate()
    }