Null checking
This commit is contained in:
@@ -195,7 +195,9 @@ public class PlayerControllerFragment extends Fragment {
|
|||||||
dialog.show(requireActivity().getSupportFragmentManager(), null);
|
dialog.show(requireActivity().getSupportFragmentManager(), null);
|
||||||
});
|
});
|
||||||
|
|
||||||
playerBottomSheetViewModel.refreshSongInfo(requireActivity(), song);
|
if (getActivity() != null) {
|
||||||
|
playerBottomSheetViewModel.refreshSongInfo(requireActivity(), song);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user