From 942fea3c97e0f8aa6420ecbc6201d4be27800d94 Mon Sep 17 00:00:00 2001 From: Marc Blank Date: Tue, 31 Jul 2012 12:03:08 -0700 Subject: [PATCH] Synchronize checkDatabases() Bug: 6538393 Change-Id: I5e4d532aa859d8a49805b74475275ad914e84b86 --- src/com/android/email/provider/EmailProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/email/provider/EmailProvider.java b/src/com/android/email/provider/EmailProvider.java index 354a48e68..e2a3ff4dd 100644 --- a/src/com/android/email/provider/EmailProvider.java +++ b/src/com/android/email/provider/EmailProvider.java @@ -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;