As stated in the title, the most common way for this bug to occur on me is reopening the app after it's been left in the background for a while. To reproduce this bug, turn on "Don't keep activities" in developer settings, and then you can expect crashes every time you return to a previous activity within the app.
I'm not experienced enough to track down the root cause, but by going through old versions, I've found that this bug first appeared in version 1.7.13, so I tried to revert the only commit 5671c8a after version 1.7.12, and the bug went away.
As stated in the title, the most common way for this bug to occur on me is reopening the app after it's been left in the background for a while. To reproduce this bug, turn on "Don't keep activities" in developer settings, and then you can expect crashes every time you return to a previous activity within the app.
I'm not experienced enough to track down the root cause, but by going through old versions, I've found that this bug first appeared in version 1.7.13, so I tried to revert the only commit 5671c8a after version 1.7.12, and the bug went away.