-
Notifications
You must be signed in to change notification settings - Fork 12
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
Sample App Crash - attempting to use destroyed context #49
Comments
Give this to the fellow. @thedevyansh |
While trying to use the
|
@thedevyansh This is a separate issue. We can log a separate ticket for this if needed. |
@ajamaica @Funkatronics I see a problem just by seeing the code which is handling on click an item, then creating the activity from the adapter using that context(item view's context) .
It should not be handled this way. Correct way to handle this would be using callbacks, and creating new activity from |
Summary
During testing I have now seen the sample app crash several times when trying to open the NFT details screen. The crash is caused do to improper use of a Context instance that is no longer valid.
Cause
NFT metadata data loading is not lifecycle aware, leading to an improper use of an already destroyed context if the callback is triggered after the activity has been stopped.
Impact
Its a sample app, it is not meant to be perfect. Likely will leave this bug as-is.
The text was updated successfully, but these errors were encountered: