summaryrefslogtreecommitdiffstats
path: root/unified_src
diff options
context:
space:
mode:
authorPaul Westbrook <pwestbro@google.com>2013-03-11 23:45:40 -0700
committerPaul Westbrook <pwestbro@google.com>2013-03-12 12:54:30 -0700
commit45402ff1f55eb83fc9add99f83649a259b5c51a2 (patch)
tree1979393edb41a45c1076067a82cf07504ec7147a /unified_src
parent0a96c46d564aa2047cd3a2f3f94ac420940f0f82 (diff)
downloadandroid_packages_apps_UnifiedEmail-45402ff1f55eb83fc9add99f83649a259b5c51a2.tar.gz
android_packages_apps_UnifiedEmail-45402ff1f55eb83fc9add99f83649a259b5c51a2.tar.bz2
android_packages_apps_UnifiedEmail-45402ff1f55eb83fc9add99f83649a259b5c51a2.zip
First step in simplifying MailAppProvider/app startup
Define a resource that specifies which content provider uris should be used to get the account list. This removes the need to have the extra code to handle various provider/receiver startup orders, as only after MailAppProvider is in onCreate() will we attempt to load the account list Change-Id: Ief5f188bf1663fcc1c389c5ce48e2173b474f6ea
Diffstat (limited to 'unified_src')
-rw-r--r--unified_src/com/android/mail/providers/protos/boot/AccountReceiver.java34
1 files changed, 0 insertions, 34 deletions
diff --git a/unified_src/com/android/mail/providers/protos/boot/AccountReceiver.java b/unified_src/com/android/mail/providers/protos/boot/AccountReceiver.java
deleted file mode 100644
index 9e2412f30..000000000
--- a/unified_src/com/android/mail/providers/protos/boot/AccountReceiver.java
+++ /dev/null
@@ -1,34 +0,0 @@
-/**
- * Copyright (c) 2011, Google Inc.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.android.mail.providers.protos.boot;
-
-import com.android.mail.providers.protos.mock.MockUiProvider;
-import android.content.BroadcastReceiver;
-import android.content.Context;
-import android.content.Intent;
-
-public class AccountReceiver extends BroadcastReceiver {
- /**
- * Intent used to notify interested parties that the Mail provider has been created.
- */
- public static final String ACTION_PROVIDER_CREATED
- = "com.android.mail.providers.protos.boot.intent.ACTION_PROVIDER_CREATED";
-
- @Override
- public void onReceive(Context context, Intent intent) {
- MockUiProvider.initializeMockProvider();
- }
-}