Revert "Initialize mDatabase on provider startup"

This reverts commit 6c319d78ed

Change-Id: I57881b090a3c7efba79369702356b622d9a7aba8
This commit is contained in:
Marc Blank 2012-09-05 13:41:07 -07:00 committed by Android (Google) Code Review
parent 6c319d78ed
commit c0a425027b
1 changed files with 0 additions and 3 deletions

View File

@ -1046,7 +1046,6 @@ public class EmailProvider extends ContentProvider {
@Override
public boolean onCreate() {
Context context = getContext();
// Initialize Uri's used throughout the app
EmailContent.init(context);
if (INTEGRITY_CHECK_URI == null) {
INTEGRITY_CHECK_URI = Uri.parse("content://" + EmailContent.AUTHORITY +
@ -1185,8 +1184,6 @@ public class EmailProvider extends ContentProvider {
matcher.addURI(EmailContent.AUTHORITY, "pickTrashFolder/#", ACCOUNT_PICK_TRASH_FOLDER);
matcher.addURI(EmailContent.AUTHORITY, "pickSentFolder/#", ACCOUNT_PICK_SENT_FOLDER);
}
// Open our database(s)
getDatabase(context);
return false;
}