Merge "Guarantee that all db related files are deleted together."

This commit is contained in:
Marco Nelissen
2013-08-07 15:30:51 +00:00
committed by Gerrit Code Review

View File

@@ -99,7 +99,7 @@ public final class DefaultDatabaseErrorHandler implements DatabaseErrorHandler {
}
Log.e(TAG, "deleting the database file: " + fileName);
try {
new File(fileName).delete();
SQLiteDatabase.deleteDatabase(new File(fileName));
} catch (Exception e) {
/* print warning and ignore exception */
Log.w(TAG, "delete failed: " + e.getMessage());