From b0dc51dd60939d35b8852822c3be8519eda1f444 Mon Sep 17 00:00:00 2001 From: jacques Date: Wed, 9 Feb 2022 11:57:31 +0100 Subject: [PATCH] Add scanOptions for QRCode light on dark background --- app/src/main/java/net/foucry/pilldroid/DrugListActivity.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/net/foucry/pilldroid/DrugListActivity.java b/app/src/main/java/net/foucry/pilldroid/DrugListActivity.java index c607d87..bf12c87 100644 --- a/app/src/main/java/net/foucry/pilldroid/DrugListActivity.java +++ b/app/src/main/java/net/foucry/pilldroid/DrugListActivity.java @@ -251,6 +251,7 @@ public class DrugListActivity extends AppCompatActivity { //options.setTimeout(3600); options.setCaptureActivity(CustomScannerActivity.class); options.addExtra(Intents.Scan.SCAN_TYPE, Intents.Scan.MIXED_SCAN); + options.addExtra(Intents.Scan.SCAN_TYPE, Intents.Scan.INVERTED_SCAN); barcodeLauncher.launch(options); }