mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2025-09-02 02:47:56 +00:00
Added comments to explain changes
This commit is contained in:
@@ -181,6 +181,9 @@ public class RelatedItemsFragment extends BaseListInfoFragment<InfoItem, Related
|
||||
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(),
|
||||
|
Reference in New Issue
Block a user