mirror of
https://github.com/jfoucry/Pilldroid.git
synced 2024-11-09 23:41:08 +01:00
Correctionn accès à la base de donnéees pour la requête après scan
This commit is contained in:
parent
6ea18c2254
commit
255c8714b6
1 changed files with 3 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue