am 7ffbcb28: am ca5d99ac: Merge "Guarantee that all db related files are deleted together."

* commit '7ffbcb2892e66059ec0cce26b4d6054c7778c711':
  Guarantee that all db related files are deleted together.
This commit is contained in:
Marco Nelissen
2013-08-07 08:38:12 -07:00
committed by Android Git Automerger

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());