From 255c8714b61c0a5b59258f5a97e8d0e21b1ac432 Mon Sep 17 00:00:00 2001 From: Jacques Foucry Date: Fri, 10 Jun 2016 21:16:56 +0200 Subject: [PATCH] =?UTF-8?q?Correctionn=20acc=C3=A8s=20=C3=A0=20la=20base?= =?UTF-8?q?=20de=20donn=C3=A9ees=20pour=20la=20requ=C3=AAte=20apr=C3=A8s?= =?UTF-8?q?=20scan?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/net/foucry/pilldroid/MedicamentListActivity.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/net/foucry/pilldroid/MedicamentListActivity.java b/app/src/main/java/net/foucry/pilldroid/MedicamentListActivity.java index 2418b41..0ee95fc 100644 --- a/app/src/main/java/net/foucry/pilldroid/MedicamentListActivity.java +++ b/app/src/main/java/net/foucry/pilldroid/MedicamentListActivity.java @@ -171,7 +171,10 @@ public class MedicamentListActivity extends AppCompatActivity { { cip13 = contents.substring(4,17); } + + dbMedoc.openDatabase(); Medicament scannedMedoc = dbMedoc.getMedocByCIP13(cip13); + dbMedoc.close(); if (scannedMedoc != null) { Toast.makeText(context, "Medicament found in database", Toast.LENGTH_LONG).show();