Thin film interference is given by: $2dsin\theta=n\frac{\lambda}{n_i}$, where $d$ is the thickness of film, $\theta$ is the angle between incident light and tangent to the surface, $n$ is an integer, $\lambda$ is wavelength of light in the film and $n_i$ is the refractive index of the film.
Bragg Diffraction is given by: $2dsin\theta=n\lambda$
The question is why $n_i$ is not necessary in the equation of Bragg diffraction.