mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-27 20:15:21 +00:00
Fixed an issue where a bunch of dialog backgrounds were missing
This commit is contained in:
parent
6edf0d46f8
commit
cea65f3e45
@ -14,7 +14,6 @@ open class BaseDialog : DialogFragment() {
|
|||||||
val builder = AlertDialog.Builder(requireContext())
|
val builder = AlertDialog.Builder(requireContext())
|
||||||
setContentView(builder)
|
setContentView(builder)
|
||||||
val result = builder.create()
|
val result = builder.create()
|
||||||
result.window?.setBackgroundDrawable(ColorDrawable(Color.TRANSPARENT))
|
|
||||||
val isLightMode = UiModeUtilities.isDayUiMode(requireContext())
|
val isLightMode = UiModeUtilities.isDayUiMode(requireContext())
|
||||||
result.window?.setDimAmount(if (isLightMode) 0.1f else 0.75f)
|
result.window?.setDimAmount(if (isLightMode) 0.1f else 0.75f)
|
||||||
return result
|
return result
|
||||||
|
Loading…
Reference in New Issue
Block a user