From c926864e4b4c8d01aaa215253b79c79af98f6e09 Mon Sep 17 00:00:00 2001 From: Jin Cao Date: Fri, 22 Aug 2014 14:44:26 -0700 Subject: [PATCH] Remove default search for Email b/17209360 Change-Id: I798139e5ab6f8cd29dde1dd475de17138330d8c5 --- AndroidManifest.xml | 12 --------- res/values/strings.xml | 4 --- res/xml/searchable.xml | 25 ------------------- .../providers/EmailAccountCacheProvider.java | 11 +------- 4 files changed, 1 insertion(+), 51 deletions(-) delete mode 100644 res/xml/searchable.xml diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 46d1e4b5a..3bd6b27c1 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -85,9 +85,6 @@ android:hardwareAccelerated="true" android:allowBackup="false" android:supportsRtl="true" > - - - - - - diff --git a/res/values/strings.xml b/res/values/strings.xml index 0e05b1f4e..2e4346b4a 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -17,9 +17,6 @@ - - com.android.email.suggestionsprovider Read email attachments @@ -799,7 +796,6 @@ com.android.email.provider com.android.email.conversation.provider com.android.email.accountcache - com.android.email.suggestionsprovider imap imap pop3 diff --git a/res/xml/searchable.xml b/res/xml/searchable.xml deleted file mode 100644 index be8da67ea..000000000 --- a/res/xml/searchable.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - diff --git a/src/com/android/mail/providers/EmailAccountCacheProvider.java b/src/com/android/mail/providers/EmailAccountCacheProvider.java index 77a9db2b6..f65c9a376 100644 --- a/src/com/android/mail/providers/EmailAccountCacheProvider.java +++ b/src/com/android/mail/providers/EmailAccountCacheProvider.java @@ -26,12 +26,6 @@ import com.android.email.activity.setup.AccountSetupFinal; public class EmailAccountCacheProvider extends MailAppProvider { // Content provider for Email private static String sAuthority; - /** - * Authority for the suggestions provider. This is specified in AndroidManifest.xml and - * res/xml/searchable.xml. - */ - private static String sSuggestionsAuthority; - @Override protected String getAuthority() { if (sAuthority == null) { @@ -47,9 +41,6 @@ public class EmailAccountCacheProvider extends MailAppProvider { @Override public String getSuggestionAuthority() { - if (sSuggestionsAuthority == null) { - sSuggestionsAuthority = getContext().getString(R.string.authority_suggestions_provider); - } - return sSuggestionsAuthority; + return null; } }