Revert "Initialize mDatabase on provider startup"

This reverts commit 33f3b0c1d5

Change-Id: Ia56d67f49b3b5d7569791d9d556e2f7eed13ee7d
This commit is contained in:
Marc Blank 2012-09-03 18:53:15 -07:00 committed by Android (Google) Code Review
parent 33f3b0c1d5
commit fcba7fa20a

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");