recreate activity with animation not work
Change all my activity to ViewModel to keep the UI data because I need to recreate the activity when switching to dark mode or applying a theme.
I created the fade in and fade out animations to add them, but I can't get it.
I already tried
recreate()
overridePendingTransition(in, out)
finish()
overridePendingTransition(in, out)
startActivity(intent)
overridePendingTransition(in, out)
Even if it is not with animation, when recreating the activity the transition is very different from when,...