From 3f177589e9edcfbc3d0aa0b3dd017b22582397ea Mon Sep 17 00:00:00 2001 From: Trudu Laurent Date: Mon, 19 Sep 2022 17:28:04 +0200 Subject: [PATCH] Added scanner_input_enabled & scanner_selection_by_identifier to switchbarcodeparams settings --- .../zebra/datawedgeprofileenums/SC_E_AIM_MODE.java | 4 ++-- .../SettingsPlugins/PluginScanner.java | 11 +++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/datawedgeprofileintentswrapper/src/main/java/com/zebra/datawedgeprofileenums/SC_E_AIM_MODE.java b/datawedgeprofileintentswrapper/src/main/java/com/zebra/datawedgeprofileenums/SC_E_AIM_MODE.java index ff3c1fa..0a308aa 100644 --- a/datawedgeprofileintentswrapper/src/main/java/com/zebra/datawedgeprofileenums/SC_E_AIM_MODE.java +++ b/datawedgeprofileintentswrapper/src/main/java/com/zebra/datawedgeprofileenums/SC_E_AIM_MODE.java @@ -1,8 +1,8 @@ package com.zebra.datawedgeprofileenums; public enum SC_E_AIM_MODE { - ON("1"), - OFF("0"); + ON("on"), + OFF("off"); private String enumString; private SC_E_AIM_MODE(String confName) diff --git a/datawedgeprofileintentswrapper/src/main/java/com/zebra/datawedgeprofileintents/SettingsPlugins/PluginScanner.java b/datawedgeprofileintentswrapper/src/main/java/com/zebra/datawedgeprofileintents/SettingsPlugins/PluginScanner.java index e095a5d..ac6a450 100644 --- a/datawedgeprofileintentswrapper/src/main/java/com/zebra/datawedgeprofileintents/SettingsPlugins/PluginScanner.java +++ b/datawedgeprofileintentswrapper/src/main/java/com/zebra/datawedgeprofileintents/SettingsPlugins/PluginScanner.java @@ -636,6 +636,17 @@ public Bundle getBarcodePluginBundleForSwitchParams() throws Exception { // Pass everything to the bundle Bundle barcodeProps = new Bundle(); + barcodeProps.putString("scanner_input_enabled", scanner_input_enabled ? "true" : "false"); + + // Use this for Datawedge < 6.7 + //barcodeProps.putString("scanner_selection", scanner_selection); + + // Use this for Datawedge < 6.7 + //barcodeProps.putString("scanner_selection", "AUTO"); + // Use this for Datawedge >= 6.7 + barcodeProps.putString("scanner_selection_by_identifier",scanner_selection_by_identifier.toString()); + + // Setup decoders setupDecoders(barcodeProps);