@sapui5/sap.ndc 1.108.19 → 1.108.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/sap/ndc/.library
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<vendor>SAP SE</vendor>
|
|
6
6
|
<copyright>SAPUI5
|
|
7
7
|
* (c) Copyright 2009-2022 SAP SE. All rights reserved.</copyright>
|
|
8
|
-
<version>1.108.
|
|
8
|
+
<version>1.108.21</version>
|
|
9
9
|
|
|
10
10
|
<documentation>SAPUI5 library with controls with native device capabilities.</documentation>
|
|
11
11
|
|
|
@@ -884,6 +884,7 @@ sap.ui.define([
|
|
|
884
884
|
enabled: false,
|
|
885
885
|
press: function() {
|
|
886
886
|
oScanDialog.getModel().setProperty("/isNoScanner", false);
|
|
887
|
+
closeScannerContain();
|
|
887
888
|
openBarcodeInputDialog();
|
|
888
889
|
}
|
|
889
890
|
}),
|
|
@@ -1064,6 +1065,7 @@ sap.ui.define([
|
|
|
1064
1065
|
* @private
|
|
1065
1066
|
*/
|
|
1066
1067
|
function decodeWithZXingCPP() {
|
|
1068
|
+
Log.info("BarcodeScanner.decodeWithZXingCPP: start to decode");
|
|
1067
1069
|
if (!oBarcodeVideoDOM || !oBarcodeVideoDOM.srcObject) {
|
|
1068
1070
|
return;
|
|
1069
1071
|
}
|
|
@@ -1278,11 +1280,15 @@ sap.ui.define([
|
|
|
1278
1280
|
}
|
|
1279
1281
|
|
|
1280
1282
|
function closeScannerContain() {
|
|
1283
|
+
// oStream and oBarcodeVideoDOM.srcObject point to the same video stream, set them to undefined when closing scan screen
|
|
1281
1284
|
if (oStream) {
|
|
1282
1285
|
var videoTrack = typeof oStream.stop === "function" ? oStream : oStream.getTracks()[0];
|
|
1283
1286
|
videoTrack.stop();
|
|
1284
1287
|
oStream = undefined;
|
|
1285
1288
|
}
|
|
1289
|
+
if (oBarcodeVideoDOM && oBarcodeVideoDOM.srcObject) {
|
|
1290
|
+
oBarcodeVideoDOM.srcObject = undefined;
|
|
1291
|
+
}
|
|
1286
1292
|
}
|
|
1287
1293
|
|
|
1288
1294
|
function zebraEBScanEnable() {
|