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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: restart activity to avoid crashes #116

Merged
merged 1 commit into from
Feb 11, 2023

Conversation

kirillzyusko
Copy link
Owner

馃摐 Description

Don't persist activity state and always restart it.

馃挕 Motivation and Context

I don't know why I didn't make it before, but it needs to be added in order to reduce amount of occasional crashes. You can read a great explanation here on why it's needed.

馃摙 Changelog

Android

  • added super.onCreate(null) in MainActivity for example apps;

馃 How Has This Been Tested?

Tested manually on emulators.

馃摑 Checklist

  • CI successfully passed

@kirillzyusko kirillzyusko added the example Anything related to example project label Feb 10, 2023
@kirillzyusko kirillzyusko self-assigned this Feb 10, 2023
@kirillzyusko kirillzyusko added the 馃 android Android specific label Feb 10, 2023
@kirillzyusko kirillzyusko merged commit 2c480bc into main Feb 11, 2023
@kirillzyusko kirillzyusko deleted the fix/rns-view-state-persistence branch February 11, 2023 01:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
馃 android Android specific example Anything related to example project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant