-
Notifications
You must be signed in to change notification settings - Fork 0
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
Realm will crash when device orientation changes #9
Comments
Need to better handle view lifecycle events. |
I am thinking about using Provider rather than directly injecting (in the On Sunday, February 14, 2016, lafickens [email protected] wrote:
|
I concur. Realm instances should always be retrieved from providers and closed in lifecycle events when appropriate. |
I just looked it up and actually it was a re-creation rather than Reference: On Sunday, February 14, 2016, lafickens [email protected] wrote:
|
If we were to make a base activity, then it only makes sense to use on single realm within a single activity (and casting to the base class type perhaps?) . That can be tricky to manage sometimes. I would suggest calling |
This bug can be reproduced (but not related to changes brought) in commit 114a172, by changing the device orientation while browsing MainActivity.
The text was updated successfully, but these errors were encountered: