Using on attach on dialog does not let the override method on fragment get called
I am using a dialog that has a click, I want to save the listener of click on “onAttach” from configuration changes, the problem is that it prevents the override method of listener on my fragment to get called. When i click the button the method calls onAttach click, the same thing when the config changes.