Fragment cleanup using OnDestroyView

I need to perform certain housekeeping tasks when I close a fragment.
If I override the the OnDestroyView method, do I need to do anything to deal with the normal functions of this method?
In other words, is this code sufficient:

        public override void OnDestroyView()
           //My cleanup stuff here

I haven't found any documentation on the proper way to "hijack" this method.


Sign In or Register to comment.