setTheme

open fun setTheme(@StyleRes themeResId: Int)(source)

This should be called from setTheme to notify AppCompat of what the current theme resource id is.