Correction erreur sur la copy/lecture de la base de médicaments

This commit is contained in:
Jacques Foucry 2016-06-14 16:56:40 +02:00
parent 4bd6c06c50
commit 9da83c3f33

View file

@ -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) {