Fixed an issue where a bunch of dialog backgrounds were missing

This commit is contained in:
Morgan Pretty 2023-06-06 16:34:23 +10:00
parent 6edf0d46f8
commit cea65f3e45

View File

@ -14,7 +14,6 @@ open class BaseDialog : DialogFragment() {
val builder = AlertDialog.Builder(requireContext())
setContentView(builder)
val result = builder.create()
result.window?.setBackgroundDrawable(ColorDrawable(Color.TRANSPARENT))
val isLightMode = UiModeUtilities.isDayUiMode(requireContext())
result.window?.setDimAmount(if (isLightMode) 0.1f else 0.75f)
return result