Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
halo
packages_providers_MediaProvider
Commits
411252cd
Commit
411252cd
authored
12 years ago
by
Marco Nelissen
Committed by
Gerrit Code Review
12 years ago
Browse files
Options
Download
Plain Diff
Merge "Guarantee that db, shm and wal files are deleted together."
parents
0fc8e0bc
450d884f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/com/android/providers/media/MediaProvider.java
src/com/android/providers/media/MediaProvider.java
+1
-1
No files found.
src/com/android/providers/media/MediaProvider.java
View file @
411252cd
...
...
@@ -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
.
g
etDatabase
Path
(
mName
)
.
delete
()
;
mContext
.
del
et
e
Database
(
mName
);
result
=
super
.
getWritableDatabase
();
}
return
result
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment