From de22e3e7564281b5d480e20c75d3135c221d3ec8 Mon Sep 17 00:00:00 2001 From: jacques Date: Wed, 23 Mar 2022 19:54:14 +0100 Subject: [PATCH] fixing debug code --- .../main/java/net/foucry/pilldroid/DrugListActivity.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/net/foucry/pilldroid/DrugListActivity.java b/app/src/main/java/net/foucry/pilldroid/DrugListActivity.java index 0366db2..6906407 100644 --- a/app/src/main/java/net/foucry/pilldroid/DrugListActivity.java +++ b/app/src/main/java/net/foucry/pilldroid/DrugListActivity.java @@ -246,16 +246,13 @@ public class DrugListActivity extends AppCompatActivity { Toast.makeText(this, R.string.cancelled_scan, Toast.LENGTH_LONG).show(); } } else { - Log.d(TAG, "Scanned"); + Log.d(TAG, "Scanned formatName = " + bundle.getString(BARCODE_FORMAT_NAME)); if (BuildConfig.DEBUG) { Toast.makeText(this, "Scanned: " + bundle.getString(BARCODE_FORMAT_NAME), Toast.LENGTH_LONG).show(); } + String cip13; - - // Handle successful scan - Log.d(TAG, "formatName = " + bundle.getString(BARCODE_FORMAT_NAME)); - switch (bundle.getString(BARCODE_FORMAT_NAME)) { case "CODE_128": case "EAN_13": //CODE_128 || EAN 13