I have a class that inherits from FragmentDialog and communicates with the activation through the interface.
But the problem is that when you create a dialogue class object, you need to remember to implement the interface, and then when the dialogue tries to call a method on the interface, the application will break ...
It is clear that it is possible when I wrote everything to test and see that everything worked ... But I think you can somehow make it mandatory?