mirror of
https://github.com/jfoucry/Pilldroid.git
synced 2024-11-09 23:41:08 +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 {
|
public void createDatabase() throws IOException {
|
||||||
Log.e(MedicamentListActivity.Constants.TAG, "createDatabase called");
|
|
||||||
|
|
||||||
boolean dbExist = checkDatabase();
|
boolean dbExist = checkDatabase();
|
||||||
|
|
||||||
if (dbExist) {
|
if (dbExist) {
|
||||||
// Nothing to do, DB already exist
|
Log.v("DB Exists", "db exists");
|
||||||
} else {
|
} else {
|
||||||
this.getDatabaseName();
|
this.getReadableDatabase();
|
||||||
try {
|
try {
|
||||||
copyDatabase();
|
copyDatabase();
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
|
|
Loading…
Reference in a new issue