Merge "When deleting a db file, Context.deleteDatabase() has to be called instead of File.delete() to guarantee all db related files like journal, wal, shm, etc are deleted together."

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

2
media/java/android/mtp/MtpDatabase.java Normal file → Executable file
View File

@@ -221,7 +221,7 @@ public class MtpDatabase {
if (c != null) c.close();
if (db != null) db.close();
}
databaseFile.delete();
context.deleteDatabase(devicePropertiesName);
}
}