I\'m trying to create an AlertDialog, by using the Builder and setting a custom view. When I try to inflate the view inside of onCreateDialog, I get a StackOverflowError..
It looks like this is fixed in Fragment 1.2.3: https://developer.android.com/jetpack/androidx/releases/fragment#1.2.3.
The docs do use requireActivity().getLayoutInflater() rather than just getLayoutInflater however so it still might not be recommended.
requireActivity().getLayoutInflater()
getLayoutInflater