Fix Crash on Related Items Enqueue Popup#1
Conversation
|
This PR looks good to me. Developer had considered a variety of scenarios which is crucial for a robust fix. This approach of managing the InfoItemDialog context within RelatedItemsFragment is considered and effectively solves the issue. |
I would suggest further improvements to the documentation in the code. Adding some comments explaining the need to check the context of the parent fragment can greatly help the future maintenance. Specifically, it would be helpful to detailed on how this check relates to preventing context loss during video conversion, which is essential for resolving the reported crash. |
|
Looks good to me, lovely work. |
What is it?
Description of the changes in your PR
InfoItemDialogpopup modal for theRelatedItemsFragmentto be attached to the parent context of theRelatedItemsFragment. This prevents the popup not being attached a context when the player automatically changes to the next video and theRelatedItemsFragmentis re-initialized.Fixes the following issue(s)
APK testing
The APK can be found by going to the "Checks" tab below the title. On the left pane, click on "CI", scroll down to "artifacts" and click "app" to download the zip file which contains the debug APK of this PR. You can find more info and a video demonstration on this wiki page.
Due diligence