View paste
I want to use the same DialogFragment subclass in multiple cases.
For what I need to do, this would require having different onClickListeners in different cases. I'm trying to figure out how to do this.
For other data types (e.g. String, int), I know I can pass them into the DialogFragment using a newInstance() method on the DialogFragment subclass, and then store them in a bundle for later use.
Can I do this for onClickListeners? Is there a better way I can accomplish what I'm trying to do (use different onClickListeners in different cases for the same DialogFragment subclass)?