Fixed an issue where a bunch of dialog backgrounds were missing

pull/1238/head
Morgan Pretty 1 year ago
parent 6edf0d46f8
commit cea65f3e45

@ -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

Loading…
Cancel
Save