Commit 411252cd authored by Marco Nelissen's avatar Marco Nelissen Committed by Gerrit Code Review
Browse files

Merge "Guarantee that db, shm and wal files are deleted together."

parents 0fc8e0bc 450d884f
......@@ -389,7 +389,7 @@ public class MediaProvider extends ContentProvider {
// This will result in the creation of a fresh database, which will be repopulated
// when the media scanner runs.
if (result == null && mUpgradeAttempted) {
mContext.getDatabasePath(mName).delete();
mContext.deleteDatabase(mName);
result = super.getWritableDatabase();
}
return result;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment