Skip to content

Commit

Permalink
Add dismissListener to builder
Browse files Browse the repository at this point in the history
  • Loading branch information
erol.aksoy committed Jun 28, 2022
1 parent 29571e2 commit b5f4fb9
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ open class Builder internal constructor() {
var showCloseButton: Boolean = false
var closeButtonListener: ((DialogFragment) -> Unit)? = null
var animateCornerRadiusWhenExpand: Boolean = false
var onDialogDismissListener: ((DialogFragment) -> Unit)? = null
var cornerRadius: Float? = null
}

Expand Down Expand Up @@ -50,6 +51,7 @@ open class InfoDialogBuilder internal constructor() : Builder() {
webViewBuilder = it.webViewBuilder,
).toBundle()
this.closeButtonListener = it.closeButtonListener ?: { }
this.onDismissListener = it.onDialogDismissListener ?: {}
}
}
}
Expand Down Expand Up @@ -81,6 +83,7 @@ open class AgreementDialogBuilder internal constructor() : InfoDialogBuilder() {
closeButtonListener = it.closeButtonListener
rightButtonClickListener = it.rightButtonClickListener
leftButtonClickListener = it.leftButtonClickListener
this.onDismissListener = it.onDialogDismissListener ?: {}
}
}
}
Expand Down Expand Up @@ -125,6 +128,7 @@ class SelectionDialogBuilder internal constructor() : InfoDialogBuilder() {
closeButtonListener = it.closeButtonListener
onItemSelectedListener = it.onItemSelectedListener
onItemReselectedListener = it.onItemReselectedListener
this.onDismissListener = it.onDialogDismissListener ?: {}
}

}
Expand Down Expand Up @@ -153,6 +157,7 @@ class InfoListDialogBuilder internal constructor() : InfoDialogBuilder() {
itemDividers = it.itemDividers
).toBundle()
closeButtonListener = it.closeButtonListener
this.onDismissListener = it.onDialogDismissListener ?: {}
}

}
Expand Down

0 comments on commit b5f4fb9

Please sign in to comment.