Fix crash when returning to Home while a video is playing

Pressing Home while a video plays could crash the app instead of
simply backgrounding it. Closing the player was updating an already
seen screen's fragment after the activity had started saving its
state, which Android does not allow.
This commit is contained in:
Harald Nordgren authored and Niels van Velzen committed 2026-09-22 13:42:53 +02:00
1 parent f8f3f78714
commit ff37d6cf6c
1 file changed
+3 -1
@@ -140,7 +140,9 @@ class DestinationFragmentView @JvmOverloads constructor(
}
// Update arguments
fragment.arguments = entry.arguments
if (!fragmentManager.isStateSaved) {
fragment.arguments = entry.arguments
}
transaction.apply {
// Set options