From 0a11352dffeb8d5f31dd40b9728fe1abf4537f04 Mon Sep 17 00:00:00 2001 From: mac <user@users-MacBook-Pro.local> Date: 星期五, 01 九月 2023 18:06:45 +0800 Subject: [PATCH] 2023年09月01日18:06:42 --- HDL-ON_Android/Scan.cs | 11 ++--------- 1 files changed, 2 insertions(+), 9 deletions(-) diff --git a/HDL-ON_Android/Scan.cs b/HDL-ON_Android/Scan.cs index f4f5de5..ea1bf16 100644 --- a/HDL-ON_Android/Scan.cs +++ b/HDL-ON_Android/Scan.cs @@ -36,15 +36,6 @@ public void OpenScan(Action<string> action) { resultAction = action; - //string cancel = "鍙栨秷"; - //string flashText = ""; - //string titleText = "浜岀淮鐮佹壂鎻�"; - //if (Language.CurrentLanguage != "Chinese") - //{ - // cancel = "Cancel"; - // flashText = ""; - // titleText = "Scan"; - //} ((BaseActivity)Shared.Application.Activity).SetCamera(async (obj) => { @@ -122,6 +113,8 @@ public static byte[] BytesFromText(string text, int width = 300, int height = 300) { + if (text == "") return null; + var barcodeWriter = new ZXing.Mobile.BarcodeWriter { Format = ZXing.BarcodeFormat.QR_CODE, -- Gitblit v1.8.0