Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
MiYaFastCashier
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jiangjiantao
MiYaFastCashier
Commits
7d8ca8d1
Commit
7d8ca8d1
authored
Mar 03, 2023
by
赵鹏翔
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
扫描枪类调整导致的问题修复
parent
940fe10e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
RefundActivity.kt
app/src/main/java/com/miya/fastcashier/ui/RefundActivity.kt
+9
-5
No files found.
app/src/main/java/com/miya/fastcashier/ui/RefundActivity.kt
View file @
7d8ca8d1
...
@@ -79,14 +79,18 @@ class RefundActivity : BaseActivity() {
...
@@ -79,14 +79,18 @@ class RefundActivity : BaseActivity() {
numberManualDialog
!!
.
show
()
numberManualDialog
!!
.
show
()
}
}
scanGunKeyEventHelper
.
setOnBarCodeCatchListener
{
scanGunKeyEventHelper
.
setOnBarCodeCatchListener
(
object
:
ScanGunKeyEventHelper
.
OnScanSuccessListener
{
override
fun
onScanSuccess
(
barcode
:
String
?)
{
barcode
?.
let
{
showProgressDialog
(
"正在为您退款.."
)
showProgressDialog
(
"正在为您退款.."
)
viewModel
.
payResultQuery
(
it
)
viewModel
.
payResultQuery
(
it
)
}
}
}
})
}
}
override
fun
dispatchKeyEvent
(
event
:
KeyEvent
?):
Boolean
{
override
fun
dispatchKeyEvent
(
event
:
KeyEvent
?):
Boolean
{
scanGunKeyEventHelper
.
analysisKeyEvent
(
event
)
event
?.
let
{
scanGunKeyEventHelper
.
analysisKeyEvent
(
it
)
}
return
super
.
dispatchKeyEvent
(
event
)
return
super
.
dispatchKeyEvent
(
event
)
}
}
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment