Skip to content

Commit

Permalink
Added comments to explain changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rmtilde committed Oct 16, 2024
1 parent 781a69d commit b14f658
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,9 @@ protected ItemViewMode getItemViewMode() {
protected void showInfoItemDialog(final StreamInfoItem item) {
try {
final Fragment parentFragment = getParentFragment();

// Try and attach the InfoItemDialog to the parent fragment of the RelatedItemsFragment
// so that its context is not lost when the RelatedItemsFragment is reinitialized.
if (parentFragment != null) {
new InfoItemDialog.Builder(
parentFragment.getActivity(),
Expand Down

0 comments on commit b14f658

Please sign in to comment.