From 9da83c3f337f02ebf17de1ed64d060c5cc54cf7d Mon Sep 17 00:00:00 2001 From: Jacques Foucry Date: Tue, 14 Jun 2016 16:56:40 +0200 Subject: [PATCH] =?UTF-8?q?Correction=20erreur=20sur=20la=20copy/lecture?= =?UTF-8?q?=20de=20la=20base=20de=20m=C3=A9dicaments?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/net/foucry/pilldroid/DBMedoc.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/net/foucry/pilldroid/DBMedoc.java b/app/src/main/java/net/foucry/pilldroid/DBMedoc.java index e15488f..a446765 100644 --- a/app/src/main/java/net/foucry/pilldroid/DBMedoc.java +++ b/app/src/main/java/net/foucry/pilldroid/DBMedoc.java @@ -47,14 +47,13 @@ public class DBMedoc extends SQLiteOpenHelper{ } public void createDatabase() throws IOException { - Log.e(MedicamentListActivity.Constants.TAG, "createDatabase called"); boolean dbExist = checkDatabase(); if (dbExist) { - // Nothing to do, DB already exist + Log.v("DB Exists", "db exists"); } else { - this.getDatabaseName(); + this.getReadableDatabase(); try { copyDatabase(); } catch (IOException e) {