I have try to close the current fragment by using Imagebutton.
I am in Fragment-A and it will turn to the Fragment-B when I click the button.
And when I clic
if you need in 2020
Objects.requireNonNull(getActivity()).onBackPressed();