Fix assertion caused by system-initiated process death
Closes #2109 (closed)
Here is how to provoke the crash/assertion on installations that is not running with this fix merged into the code:
- First navigate to android Settings -> System - Developer options and enable the "Don't keep activities" option (under heading APPS). (I guess the exact location/wording can vary between devices).
- Start Briar
- Navigate to
Blogs
page and tapRSS Feeds
(in overflow menu). - Plus
+
to import new feed - Type URL
https://example.com
- Tap
Import
- Wait for error dialog.
- Tap android home button,
◯
(may vary), to show the home screen with all the apps. - (the android system will now "not keep" the rss feed import activity, stopping it that is)
- Tap the "app overview" button,
□
(may vary) and navigate (tap) back to Briar. - Tap
Try Again
- Enjoy Briad crashed icon.
With the fix, we should obviously not have a crash. Enabling android to not keep activities is the way to quickly provoking this crash, so it is helpful when verifying the fix.
Edited by Daniel Lublin