mirror of
https://github.com/jellyfin/jellyfin-androidtv.git
synced 2026-10-26 16:45:23 +00:00
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:
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
|
||||
|
||||
Reference in new issue
Block a user