Synchronize checkDatabases()
Bug: 6538393 Change-Id: I5e4d532aa859d8a49805b74475275ad914e84b86
This commit is contained in:
parent
949fc3d883
commit
942fea3c97
@ -1181,7 +1181,7 @@ public class EmailProvider extends ContentProvider {
|
|||||||
* any "orphan" database, so that both will be created together. Note that an "orphan" database
|
* any "orphan" database, so that both will be created together. Note that an "orphan" database
|
||||||
* will exist after either of the individual databases is deleted due to data corruption.
|
* will exist after either of the individual databases is deleted due to data corruption.
|
||||||
*/
|
*/
|
||||||
public void checkDatabases() {
|
public synchronized void checkDatabases() {
|
||||||
// Uncache the databases
|
// Uncache the databases
|
||||||
if (mDatabase != null) {
|
if (mDatabase != null) {
|
||||||
mDatabase = null;
|
mDatabase = null;
|
||||||
|
Loading…
Reference in New Issue
Block a user