Closed tprochazka closed 10 years ago
What would you suggest? We should not have two ways of creating custom dialogs. Maybe move something from SimpleDialogFragment to BaseDialogFragment?
Yes, best way is move support ISimpleDialogCancelListener and ISimpleDialogListener to BaseDialogFragment
@tprochazka BaseDialogFragment is too general for ISimpleDialogListener - it may not contain anything that would result in positive/negative response. We could move support for ISimpleDialogCancelListener to BaseDialogFragment, but I prefer to keep those listeners together in one class. Closing for now. You can reopen the issue, if you had better idea.
ISimpleDialogCancelListener and ISimpleDialogListener is very powerfull way to handle user response in fragment or activity level in save way (handle orientation change). But now is possible use it only with SimpleDialogFragment and it's not good think to use SimpleDialogFragment as parent for new custom dialogs. It is not designed for that.