feat Rename refs #7763

This commit is contained in:
Sergio De la torre 2024-07-19 16:22:11 +02:00
parent fc98bd5162
commit 52c9cbf859
2 changed files with 12 additions and 14 deletions

View File

@ -100,6 +100,9 @@ class CustomDialogInput(context: Context) : Dialog(context, R.style.DialogTheme)
fun setFocusText() { fun setFocusText() {
binding.customDialogValue.requestFocus() binding.customDialogValue.requestFocus()
} }
fun setFocusTextTwo() {
binding.customDialogValueTwo.requestFocus()
}
fun plusTextButton(view: View) { fun plusTextButton(view: View) {

View File

@ -14,7 +14,6 @@ class CustomDialogTwoButtons (context: Context) : Dialog(context, R.style.Dialog
init { init {
setContentView(binding.root) setContentView(binding.root)
//setContentView(R.layout.component_custom_two_dialog)
} }
@ -23,8 +22,6 @@ class CustomDialogTwoButtons (context: Context) : Dialog(context, R.style.Dialog
binding.customDialogTitle.visibility= View.VISIBLE binding.customDialogTitle.visibility= View.VISIBLE
binding.customDialogTitle.text=title binding.customDialogTitle.text=title
/* custom_dialog_title.visibility = View.VISIBLE
custom_dialog_title.text = title*/
return this return this
} }
@ -32,8 +29,7 @@ class CustomDialogTwoButtons (context: Context) : Dialog(context, R.style.Dialog
binding.customDialogDescription.visibility= View.VISIBLE binding.customDialogDescription.visibility= View.VISIBLE
binding.customDialogDescription.text=description binding.customDialogDescription.text=description
/* custom_dialog_description.visibility = View.VISIBLE
custom_dialog_description.text = description*/
return this return this
} }
@ -43,9 +39,6 @@ class CustomDialogTwoButtons (context: Context) : Dialog(context, R.style.Dialog
binding.customDialogButtonOk.text =text binding.customDialogButtonOk.text =text
binding.customDialogButtonOk.setOnClickListener { onButtonClicked() } binding.customDialogButtonOk.setOnClickListener { onButtonClicked() }
/*custom_dialog_button_ok.visibility = View.VISIBLE
custom_dialog_button_ok.text = text
custom_dialog_button_ok.setOnClickListener { onButtonClicked() }*/
return this return this
} }
@ -55,9 +48,14 @@ class CustomDialogTwoButtons (context: Context) : Dialog(context, R.style.Dialog
binding.customDialogButtonOkTwo.text = text binding.customDialogButtonOkTwo.text = text
binding.customDialogButtonOkTwo.setOnClickListener { onButtonClicked() } binding.customDialogButtonOkTwo.setOnClickListener { onButtonClicked() }
/* custom_dialog_button_ok_two.visibility = View.VISIBLE return this
custom_dialog_button_ok_two.text = text }
custom_dialog_button_ok_two.setOnClickListener { onButtonClicked() }*/ fun setOkButtonThree(text: String, onButtonClicked: () -> Unit): CustomDialogTwoButtons {
binding.customDialogButtonOkThree.visibility = View.VISIBLE
binding.customDialogButtonOkThree.text = text
binding.customDialogButtonOkThree.setOnClickListener { onButtonClicked() }
return this return this
} }
@ -67,9 +65,6 @@ class CustomDialogTwoButtons (context: Context) : Dialog(context, R.style.Dialog
binding.customDialogButtonKo.text =text binding.customDialogButtonKo.text =text
binding.customDialogButtonKo.setOnClickListener { onButtonClicked() } binding.customDialogButtonKo.setOnClickListener { onButtonClicked() }
/*custom_dialog_button_ko.visibility = View.VISIBLE
custom_dialog_button_ko.text = text
custom_dialog_button_ko.setOnClickListener { onButtonClicked() }*/
return this return this
} }