YoKeyword/SwipeBackFragment

MyFragment extends SwipeBackFragment ,and then when swipeback ,MyFragment did not call onDestroyView()

Closed this issue · 4 comments

So after swipeback to upper,I couldn't touch or click anywhere until I click the backButton

Can you provide a snippet of your code ?

This happens when I closed MyFragment by myself

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

You can refer to the DEMO.
Or you are Chinese... =。= My QQ: 328903522