Skip to content

Commit b14f658

Browse files
committed
Added comments to explain changes
1 parent 781a69d commit b14f658

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

app/src/main/java/org/schabi/newpipe/fragments/list/videos/RelatedItemsFragment.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,9 @@ protected ItemViewMode getItemViewMode() {
181181
protected void showInfoItemDialog(final StreamInfoItem item) {
182182
try {
183183
final Fragment parentFragment = getParentFragment();
184+
185+
// Try and attach the InfoItemDialog to the parent fragment of the RelatedItemsFragment
186+
// so that its context is not lost when the RelatedItemsFragment is reinitialized.
184187
if (parentFragment != null) {
185188
new InfoItemDialog.Builder(
186189
parentFragment.getActivity(),

0 commit comments

Comments
 (0)