We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 702b0ea commit 90f4ce1Copy full SHA for 90f4ce1
ui/src/main/java/io/snabble/sdk/ui/checkout/CheckoutActivity.kt
@@ -298,4 +298,17 @@ class CheckoutActivity : FragmentActivity() {
298
headlessFragment = foundFragment
299
}
300
301
+
302
+ override fun onDetachedFromWindow() {
303
+ super.onDetachedFromWindow()
304
+ val activity = requireFragmentActivity()
305
+ headlessFragment?.let { fragment ->
306
+ if (!activity.isChangingConfigurations) {
307
+ activity.supportFragmentManager.beginTransaction()
308
+ .remove(fragment)
309
+ .commitAllowingStateLoss()
310
+ }
311
312
+ headlessFragment = null
313
314
0 commit comments