When the user switches between dark and light themes, Android destroys and recreates the activity. However, Lime activities can't be recreated like this, and just close instead. Since we don't actually use the system theme, there's no reason to do this. Simplest solution is to suppress it. https://developer.android.com/guide/topics/resources/runtime-changes https://developer.android.com/guide/topics/ui/look-and-feel/darktheme#config-changes