722-Fix_mail_app_crash_after_authentication_complete
Description
Sometimes /e/OS Mail crashed after google authentication is completed. This MR fixes that issue.
Issue(s)
Test environment
Download apk from the pipeline
Test procedures
Try to log in google account from /e/OS Mail. The process will open /e/OS Account Manager & /e/OS Browser. After the authentication is complete, /e/OS Account Manager will try to start /e/OS Mail again. Check /e/OS Mail opens correctly
Technical details
Opening /e/OS Mail mainActivity & sending broadcast of new account added creates a race condition in /e/OS Mail. To resolve this, we need to check if the /e/OS Mail activity opening after authentication is completed, if yes, we don't need to send a broadcast of the new account added.
Screenshots
Checklist
-
Self-review -
Test procedure explained -
Tested on a fresh install -
Tested applied as an update -
License -
Internal documentation -
User documentation