When enabling/disabling the dark theme, there's an animation that makes the process feel much smoother than most apps. I'd like to see if I can put together some PRs to add that animation to some other apps I use. Relevant code (from settingsActivity.java):
private void restartActivity() {
TaskStackBuilder.create(getApplicationContext()).addNextIntentWithParentStack(getIntent()).startActivities();
}
Does TaskStackBuilder create the animation, too? I'm relatively new to Android dev and just want to make sure I'm not missing anything.