Just call activity.recreate() to trigger the configuration update: https://developer.android.com/reference/android/app/Activity#recreate()
activity.recreate()