Synchronize checkDatabases()

Bug: 6538393
Change-Id: I5e4d532aa859d8a49805b74475275ad914e84b86
This commit is contained in:
Marc Blank 2012-07-31 12:03:08 -07:00
parent 949fc3d883
commit 942fea3c97

View File

@ -1181,7 +1181,7 @@ public class EmailProvider extends ContentProvider {
* 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.
*/
public void checkDatabases() {
public synchronized void checkDatabases() {
// Uncache the databases
if (mDatabase != null) {
mDatabase = null;