What does the following code do?
dialog.getWindow().setFlags(LayoutParams.FLAG_BLUR_BEHIND,
LayoutParams.FLAG_BLUR_BEHIND);
What does the following code do?
dialog.getWindow().setFlags(LayoutParams.FLAG_BLUR_BEHIND,
LayoutParams.FLAG_BLUR_BEHIND);
The code uses the setFlags method with LayoutParams.FLAG_BLUR_BEHIND, which indicates that when the dialog is displayed, the activity behind the dialog will be blurred. This is specified by the flag's purpose: to blur everything behind the window.
A. When dialog is displayed the activity behind it will be blurred.