We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 781a69d commit b14f658Copy full SHA for b14f658
1 file changed
app/src/main/java/org/schabi/newpipe/fragments/list/videos/RelatedItemsFragment.java
@@ -181,6 +181,9 @@ protected ItemViewMode getItemViewMode() {
181
protected void showInfoItemDialog(final StreamInfoItem item) {
182
try {
183
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.
187
if (parentFragment != null) {
188
new InfoItemDialog.Builder(
189
parentFragment.getActivity(),
0 commit comments