I get the lint warning, Avoid passing null as the view root when inflating views with null as parent, like:
Avoid passing null as the view root
null
parent
LayoutInfl
You don't need to specify a parent for a dialog.
Suppress this using @SuppressLint("InflateParams") at the top of the override.
@SuppressLint("InflateParams")