Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed crash on rationale click listener when using android.app.Fragment #78

Merged

Conversation

phcannesson
Copy link
Contributor

My PR #61 introduced a crash in RationaleDialogClickListener when trying to cast Fragment host as FragmentActivity.

I did not have the time to fully test it but it should be the only regression.

@samtstern
Copy link
Contributor

@phcannesson can you reproduce this crash in version 0.3.0? I don't think you should be able to get to the rationale dialog step for API < 23 but maybe there's a way around?

@phcannesson
Copy link
Contributor Author

Yes I reproduced it when upgrading to 0.3.0.

mHost is android.app.Fragment and therefore the app crashes when trying to cast it as FragmentActivity.

@samtstern
Copy link
Contributor

@phcannesson oh I see now, I mixed up Fragment and FragmentActivity in my head. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants