From 92561ecd56d26712df68c83a084bc09fbf07cc8e Mon Sep 17 00:00:00 2001 From: Marc Blank Date: Tue, 11 Sep 2012 10:00:34 -0700 Subject: [PATCH] Make sure EmailContent is initialized Bug: 7142845 Change-Id: I4299ab2627a4427ff8e96958b2c27f2f827e7794 --- src/com/android/email2/ui/MailActivityEmail.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/com/android/email2/ui/MailActivityEmail.java b/src/com/android/email2/ui/MailActivityEmail.java index 915bf8cd4..7a0870c3a 100644 --- a/src/com/android/email2/ui/MailActivityEmail.java +++ b/src/com/android/email2/ui/MailActivityEmail.java @@ -33,6 +33,7 @@ import com.android.email.service.MailService; import com.android.emailcommon.Logging; import com.android.emailcommon.TempDirectory; import com.android.emailcommon.provider.Account; +import com.android.emailcommon.provider.EmailContent; import com.android.emailcommon.service.EmailServiceProxy; import com.android.emailcommon.utility.EmailAsyncTask; import com.android.emailcommon.utility.Utility; @@ -110,6 +111,8 @@ public class MailActivityEmail extends com.android.mail.ui.MailActivity { * @return true if there are any accounts configured. */ public static boolean setServicesEnabledSync(Context context) { + // Make sure we're initialized + EmailContent.init(context); Cursor c = null; try { c = context.getContentResolver().query(