“Avoid passing null as the view root” warning when inflating view for use by AlertDialog October 26, 2022 by Tarik Use this code to inflate the dialog view without a warning: View.inflate(context, R.layout.dialog_edit, null);