This is my BottomsheetFragment Showing method. When I user new BottomSheetFragment().dismiss();
then shut down apps.
new BottomSheetFragment().
show(requireActivity().getSupportFragmentManager(),
new BottomSheetFragment().getTag());
This code properly shows bottom sheet Dialog. But I can't user dismiss();
What is the solution to these issues? Thanks.