MyFragment extends SwipeBackFragment ,and then when swipeback ,MyFragment did not call onDestroyView()
Closed this issue · 4 comments
MartinLi2015 commented
So after swipeback to upper,I couldn't touch or click anywhere until I click the backButton
YoKeyword commented
Can you provide a snippet of your code ?
MartinLi2015 commented
This happens when I closed MyFragment by myself
MartinLi2015 commented
public void onBackPressed() {
// getActivity().getSupportFragmentManager().beginTransaction()
// .setCustomAnimations(R.anim.fragment_slide_right_enter,R.anim.fragment_slide_right_exit)
// .detach(this).commit();
getActivity().getSupportFragmentManager().popBackStackImmediate();
}
Maybe It is my fault .
At first,I used the annotated code.
But I don't understand it
YoKeyword commented
You can refer to the DEMO.
Or you are Chinese... =。= My QQ: 328903522