Using same color for dialog scrim as Android

This commit is contained in:
Sylvain Berfini 2023-11-22 15:05:45 +01:00
parent 688f797acf
commit 56bc96314a

View file

@ -329,9 +329,9 @@ class DialogUtils {
WindowManager.LayoutParams.MATCH_PARENT
)
val d: Drawable = ColorDrawable(
AppUtils.getColor(R.color.gray_main2_800)
AppUtils.getColor(R.color.black)
)
d.alpha = 102
d.alpha = 153 // 60%
dialog.window?.setBackgroundDrawable(d)
return dialog
}