feat: refs#7823 selectPrinterFreely
This commit is contained in:
parent
983043382d
commit
2f639cc1c0
|
@ -29,8 +29,8 @@ class PrinterDialogManager(private val context: Context) {
|
||||||
handlePrintClick(item, customDialogList, onPrintClick, "barcode")
|
handlePrintClick(item, customDialogList, onPrintClick, "barcode")
|
||||||
customDialogList.dismiss()
|
customDialogList.dismiss()
|
||||||
//Tarea 7823
|
//Tarea 7823
|
||||||
/*}.setOkThreeButton(context.getString(R.string.changePrinter)) {
|
}.setOkThreeButton(context.getString(R.string.changePrinter)) {
|
||||||
readQrPrinter(onPrintChange)*/
|
readQrPrinter(onPrintChange)
|
||||||
}.setKoButton(context.getString(R.string.cancel)) {
|
}.setKoButton(context.getString(R.string.cancel)) {
|
||||||
customDialogList.dismiss()
|
customDialogList.dismiss()
|
||||||
}.setHintValueThree(context.getString(R.string.labelNumber))
|
}.setHintValueThree(context.getString(R.string.labelNumber))
|
||||||
|
@ -55,6 +55,7 @@ class PrinterDialogManager(private val context: Context) {
|
||||||
customDialogInput.getEditText().setOnEditorActionListener { _, actionId, _ ->
|
customDialogInput.getEditText().setOnEditorActionListener { _, actionId, _ ->
|
||||||
if (actionId == EditorInfo.IME_ACTION_SEARCH || actionId == EditorInfo.IME_ACTION_DONE || actionId == 0) {
|
if (actionId == EditorInfo.IME_ACTION_SEARCH || actionId == EditorInfo.IME_ACTION_DONE || actionId == 0) {
|
||||||
onPrintChange(customDialogInput.getValue())
|
onPrintChange(customDialogInput.getValue())
|
||||||
|
println("printerrr ${customDialogInput.getValue()}")
|
||||||
customDialogInput.dismiss()
|
customDialogInput.dismiss()
|
||||||
return@setOnEditorActionListener true
|
return@setOnEditorActionListener true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue