mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
add ok button in pin dialog
This commit is contained in:
parent
0ada15aa8b
commit
900afca846
1 changed files with 4 additions and 0 deletions
|
@ -38,6 +38,10 @@ object AccountDialog {
|
|||
val dialog = AlertDialog.Builder(context, R.style.AlertDialogCustom)
|
||||
.setView(binding.root)
|
||||
.setTitle(titleRes)
|
||||
.setPositiveButton(R.string.setup_done) { _, _ ->
|
||||
val enteredPin = binding.pinEditText.text.toString()
|
||||
callback.invoke(enteredPin)
|
||||
}
|
||||
.setNegativeButton(R.string.cancel) { _, _ ->
|
||||
callback.invoke(null)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue