mirror of
https://github.com/jfoucry/Pilldroid.git
synced 2024-11-17 18:41:37 +01:00
Correction erreur sur la copy/lecture de la base de médicaments
This commit is contained in:
parent
4bd6c06c50
commit
9da83c3f33
1 changed files with 2 additions and 3 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue