mirror of
https://github.com/rebelonion/Dantotsu.git
synced 2026-01-11 18:06:16 +00:00
Add animation to dialog
This commit is contained in:
@@ -181,7 +181,10 @@ class AlertDialogBuilder(private val context: Context) {
|
||||
dialog.setOnShowListener {
|
||||
onShow?.invoke()
|
||||
}
|
||||
dialog.window?.setDimAmount(0.8f)
|
||||
dialog.window?.apply {
|
||||
setDimAmount(0.8f)
|
||||
attributes.windowAnimations = android.R.style.Animation_Dialog
|
||||
}
|
||||
dialog.show()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user