Added comments to explain changes
This commit is contained in:
parent
781a69d60d
commit
b14f65804d
|
@ -181,6 +181,9 @@ public class RelatedItemsFragment extends BaseListInfoFragment<InfoItem, Related
|
||||||
protected void showInfoItemDialog(final StreamInfoItem item) {
|
protected void showInfoItemDialog(final StreamInfoItem item) {
|
||||||
try {
|
try {
|
||||||
final Fragment parentFragment = getParentFragment();
|
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) {
|
if (parentFragment != null) {
|
||||||
new InfoItemDialog.Builder(
|
new InfoItemDialog.Builder(
|
||||||
parentFragment.getActivity(),
|
parentFragment.getActivity(),
|
||||||
|
|
Loading…
Reference in New Issue