avast / android-styled-dialogs

Backport of Material dialogs with easy-to-use API based on DialogFragment
Apache License 2.0
2.15k stars 450 forks source link

Can ListDialogFragment be used inside a Fragment? #93

Closed ayerkovich closed 9 years ago

ayerkovich commented 9 years ago

I'm able to display de ListDialogFragment inside a Fragment but it doesn't fire the onListItemSelected method when any item is selected.

I'm guessing not since:

    ListDialogFragment
            .createBuilder(getActivity(), getActivity().getSupportFragmentManager())
            ...

takes and activity as argument and not a fragment.

Any ideas?

limojoe commented 9 years ago

Did you use setTargetFragment?

ayerkovich commented 9 years ago

Thanks! That did the trick!