Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
barcode-scan
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Andrés Branas
barcode-scan
Commits
1e3156b6
Commit
1e3156b6
authored
Oct 23, 2017
by
Oscar Fuentes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix honeywell class
parent
9b7f8c1f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
src/android/com/cocodin/barcodescan/plugin/devices/EDA50K.java
+7
-8
No files found.
src/android/com/cocodin/barcodescan/plugin/devices/EDA50K.java
View file @
1e3156b6
...
...
@@ -42,7 +42,8 @@ public class EDA50K extends BaseScan implements BarcodeListener {
}
@Override
public
void
scan
(
final
CordovaInterface
cordova
,
CordovaWebView
webView
,
JSONArray
args
,
final
CallbackContext
callbackContext
)
{
public
void
scan
(
final
CordovaInterface
cordova
,
CordovaWebView
webView
,
JSONArray
args
,
final
CallbackContext
callbackContext
)
{
if
(
manager
==
null
)
{
AidcManager
.
create
(
cordova
.
getActivity
(),
new
CreatedCallback
()
{
...
...
@@ -63,9 +64,11 @@ public class EDA50K extends BaseScan implements BarcodeListener {
// set the trigger mode to auto control
try
{
barcodeReader
.
setProperty
(
BarcodeReader
.
PROPERTY_TRIGGER_CONTROL_MODE
,
BarcodeReader
.
TRIGGER_CONTROL_MODE_AUTO_CONTROL
);
barcodeReader
.
setProperty
(
BarcodeReader
.
PROPERTY_TRIGGER_CONTROL_MODE
,
BarcodeReader
.
TRIGGER_CONTROL_MODE_AUTO_CONTROL
);
}
catch
(
UnsupportedPropertyException
e
)
{
Toast
.
makeText
(
cordova
.
getActivity
(),
"Failed to apply properties"
,
Toast
.
LENGTH_SHORT
).
show
();
Toast
.
makeText
(
cordova
.
getActivity
(),
"Failed to apply properties"
,
Toast
.
LENGTH_SHORT
)
.
show
();
}
Map
<
String
,
Object
>
properties
=
new
HashMap
<
String
,
Object
>();
...
...
@@ -101,8 +104,7 @@ public class EDA50K extends BaseScan implements BarcodeListener {
}
}
});
}
else
{
}
else
{
readBarcode
(
callbackContext
);
}
}
...
...
@@ -119,20 +121,17 @@ public class EDA50K extends BaseScan implements BarcodeListener {
@Override
public
void
onResume
(
boolean
multitasking
)
{
super
.
onResume
(
multitasking
);
if
(
barcodeReader
!=
null
)
{
try
{
barcodeReader
.
claim
();
}
catch
(
ScannerUnavailableException
e
)
{
e
.
printStackTrace
();
NotifyError
(
"Scanner unavailable"
);
}
}
}
@Override
public
void
onPause
(
boolean
multitasking
)
{
super
.
onPause
(
multitasking
);
if
(
barcodeReader
!=
null
)
{
// release the scanner claim so we don't get any scanner
// notifications while paused.
...
...
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