Merge "Revert "Initialize mDatabase on provider startup"" into jb-ub-mail

This commit is contained in:
Marc Blank 2012-09-03 18:55:19 -07:00 committed by Android (Google) Code Review
commit 9e4556ae1c

View File

@ -1046,10 +1046,7 @@ public class EmailProvider extends ContentProvider {
@Override
public boolean onCreate() {
Context context = getContext();
// Initialize Uri's used throughout the app
EmailContent.init(context);
// Open our database(s)
getDatabase(context);
if (INTEGRITY_CHECK_URI == null) {
INTEGRITY_CHECK_URI = Uri.parse("content://" + EmailContent.AUTHORITY +
"/integrityCheck");