Fix usage of LayoutInflater.