Skip to content

Fix some bugs in DownloadedPlayerActivity#2758

Open
Luna712 wants to merge 2 commits intorecloudstream:masterfrom
Luna712:fix-some-bugs
Open

Fix some bugs in DownloadedPlayerActivity#2758
Luna712 wants to merge 2 commits intorecloudstream:masterfrom
Luna712:fix-some-bugs

Conversation

@Luna712
Copy link
Copy Markdown
Contributor

@Luna712 Luna712 commented May 4, 2026

No description provided.

// When savedInstanceState != null the system saved state before killing the
// backgrounded process the NavController restores the correct player fragment
// automatically. Do not replay the intent as it would push a duplicate player.
if (savedInstanceState == null) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am unable to fully test this until #2750 is fixed, as introducing a state where savedInstanceState != null causes that bug.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also could have done this part wrong. I was testing a lot of things in a massive local change, this 1) may depend on other things or 2) actually be totally unnecessary. Anyway #2761 fixes that bug. But that might still not let it work here. If not that part can be reverted.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the issue still happens with a null savedInstanceState I will revert that part. I was building this on top of change I was testing to use SavedStateHandle also, so may have had some other effect also. The other bugs this fixes are more important regardless.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants