Skip to content

Conversation

@s-cortes
Copy link
Contributor

I changed the position where the Toast is created to avoid a IllegalStateException. This exception was thrown because the DialogFragment was no longer attached to the SettingsActivity when the userInfoFailed() method was called.

I changed the position where the Toast is created to avoid a IllegalStateException. This exception was thrown because the DialogFragment was no longer attached to the SettingsActivity when the userInfoFailed() method was called.
@naman14
Copy link
Owner

naman14 commented Oct 5, 2020

A better solution would be to check for getActivity() != null

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.

2 participants