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

The method getParentFragment() is undefined for the type SimpleDialogFragment #29

Closed dmmh closed 10 years ago

dmmh commented 10 years ago

I simply imported the library project into Eclipse workspace and this error is shown...

ivlucks commented 10 years ago

yes,I have it

ivlucks commented 10 years ago

use getTargetFragment() to replace getParentFragment()

dmmh commented 10 years ago

thanks :+1: I could build the project now, I will try later if it still actually works as it should with this modification

davidvavra commented 10 years ago

I have reverted earlier pull request in commit 2e6e8a4ab8be06f547434461123780e62864a229

getParentFragment() is from newer support library and unfortunately we need to depend on old v7 support library available in Maven Central. Right now it builds OK.

SirClancy commented 9 years ago

using getTargetFragment() works for me