Pier Angelo Vendrame pushed to branch tor-browser-128.6.0esr-14.5-1 at The Tor Project / Applications / Tor Browser
Commits:
-
eabeaa5b
by clairehurst at 2025-01-21T16:50:59+00:00
1 changed file:
Changes:
... | ... | @@ -176,8 +176,6 @@ open class HomeActivity : LocaleAwareAppCompatActivity(), NavHostActivity, TorIn |
176 | 176 | |
177 | 177 | private var isToolbarInflated = false
|
178 | 178 | |
179 | - private var isBeingRecreated = false
|
|
180 | - |
|
181 | 179 | private val webExtensionPopupObserver by lazy {
|
182 | 180 | WebExtensionPopupObserver(components.core.store, ::openPopup)
|
183 | 181 | }
|
... | ... | @@ -652,7 +650,7 @@ open class HomeActivity : LocaleAwareAppCompatActivity(), NavHostActivity, TorIn |
652 | 650 | stopMediaSession()
|
653 | 651 | }
|
654 | 652 | |
655 | - if (!isBeingRecreated && !(application as FenixApplication).isTerminating()) {
|
|
653 | + if (isFinishing && !(application as FenixApplication).isTerminating()) {
|
|
656 | 654 | // We assume the Activity is being destroyed because the user
|
657 | 655 | // swiped away the app on the Recent screen. When this happens,
|
658 | 656 | // we assume the user expects the entire Application is destroyed
|
... | ... | @@ -686,8 +684,6 @@ open class HomeActivity : LocaleAwareAppCompatActivity(), NavHostActivity, TorIn |
686 | 684 | message = "recreate()",
|
687 | 685 | )
|
688 | 686 | |
689 | - isBeingRecreated = true
|
|
690 | - |
|
691 | 687 | super.recreate()
|
692 | 688 | }
|
693 | 689 |