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

Update to prevent IllegalStateException #412

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update to prevent IllegalStateException #412

wants to merge 1 commit into from

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.

None yet

2 participants