I'm implementing a Fragment that calls two TimePickerDialog
's as answered here.
But that answer implements it in a activity and then uses a instance of the listener using
mListener = getActivity() instanceof TimePickerDialogListener ? (TimePickerDialogListener) getActivity() : null;
How can I get the Listener instance in my Fragment that implements the TimePickerDialogListener
?