I am using activity.recreate() to trigger a configuration change so I can load a new theme in onCreate() without loosing my fragments state (also I am showing a circular reveal animation for the new theme so I don't want any activity transition animation either).
It works fine on the emulator (Android 11) but on my real device (Pixel 3, Android 11), the screen turns black shortly before the activity is recreated. How do I prevent this?