Commit 7d8ca8d1 authored by 赵鹏翔's avatar 赵鹏翔

扫描枪类调整导致的问题修复

parent 940fe10e
......@@ -79,14 +79,18 @@ class RefundActivity : BaseActivity() {
numberManualDialog!!.show()
}
scanGunKeyEventHelper.setOnBarCodeCatchListener {
scanGunKeyEventHelper.setOnBarCodeCatchListener(object : ScanGunKeyEventHelper.OnScanSuccessListener{
override fun onScanSuccess(barcode: String?) {
barcode?.let {
showProgressDialog("正在为您退款..")
viewModel.payResultQuery(it)
viewModel.payResultQuery(it) }
}
})
}
override fun dispatchKeyEvent(event: KeyEvent?): Boolean {
scanGunKeyEventHelper.analysisKeyEvent(event)
event?.let { scanGunKeyEventHelper.analysisKeyEvent(it) }
return super.dispatchKeyEvent(event)
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment