Fixed callback if DialogFragment called from an other Fragment

Good day to you.
 
I have been trying to use your library in my own project.
And I found out that if I start DialogFragment from an Fragment then I don't receive the interface callback there, but I receive it on Activity which has started this Fragment. 
So I decided to add small changes to your library. 

Please, check it, if everything is allright I will be very happy to help you :)
I can make a new push only with changes in the library project. Or the other solution could be to combine all the changes in a one Activity. Because at the moment there is a necessary method call for a Fragment ( mDialog.setTargetFragment(this, REQUEST_CODE); ), so I think the sample will be useful. And what do you think ?