Override onDetach for fragments with a listener