I am calling a Fragment Dialogue from a Fragment, and when I try to impliment a callback it isn't calling back to the Fragment, I think it is calling back to the Activity. I believe this is by design from Google, is there anyway around that? How can couple the Dialogue Fragment to the Fragment?
My code is as follows;
Dialogue Fragment
public class CustomDatePicker extends DialogFragment {
private DateListener listener;
...
public interface DateListener {
void onDateComplete();
}
}
Fragment
public class User extends Fragment implements CustomDatePicker.DateListener {
...
@Override
public void onDateComplete() {
Log.i("TEST", "onDateComplete: " + date);
}
}