diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 4bfebe2f9..3626eb4d6 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -339,7 +339,7 @@
@@ -347,7 +347,7 @@
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 334a9f36b..cf9bcf6d8 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -809,6 +809,9 @@
com.android.exchange
com.android.email.activity.setup.ACCOUNT_MANAGER_ENTRY
com.android.email.provider
+ com.android.email.conversation.provider
+ com.android.email.accountcache
+ com.android.email.suggestionsprovider
imap
imap
pop3
diff --git a/src/com/android/mail/browse/EmailConversationProvider.java b/src/com/android/mail/browse/EmailConversationProvider.java
index ebff3137c..edf6ee7ee 100644
--- a/src/com/android/mail/browse/EmailConversationProvider.java
+++ b/src/com/android/mail/browse/EmailConversationProvider.java
@@ -16,6 +16,7 @@
package com.android.mail.browse;
+import com.android.email.R;
import com.android.mail.browse.ConversationCursor.ConversationProvider;
import java.lang.Override;
@@ -23,10 +24,13 @@ import java.lang.Override;
public class EmailConversationProvider extends ConversationProvider {
// The authority of our conversation provider (a forwarding provider)
// This string must match the declaration in AndroidManifest.xml
- private static final String sAuthority = "com.android.email2.conversation.provider";
+ private static String sAuthority;
@Override
protected String getAuthority() {
+ if (sAuthority == null) {
+ sAuthority = getContext().getString(R.string.authority_conversation_provider);
+ }
return sAuthority;
}
}
\ No newline at end of file
diff --git a/src/com/android/mail/providers/EmailAccountCacheProvider.java b/src/com/android/mail/providers/EmailAccountCacheProvider.java
index a311e36cb..41a1d2e51 100644
--- a/src/com/android/mail/providers/EmailAccountCacheProvider.java
+++ b/src/com/android/mail/providers/EmailAccountCacheProvider.java
@@ -20,19 +20,23 @@ import android.content.Context;
import android.content.Intent;
import android.net.Uri;
+import com.android.email.R;
import com.android.email.activity.setup.AccountSettings;
public class EmailAccountCacheProvider extends MailAppProvider {
// Content provider for Email
- private static final String sAuthority = "com.android.email2.accountcache";
+ private static String sAuthority;
/**
* Authority for the suggestions provider. This is specified in AndroidManifest.xml and
* res/xml/searchable.xml.
*/
- private static final String sSuggestionsAuthority = "com.android.email.suggestionsprovider";
+ private static String sSuggestionsAuthority;
@Override
protected String getAuthority() {
+ if (sAuthority == null) {
+ sAuthority = getContext().getString(R.string.authority_account_cache_provider);
+ }
return sAuthority;
}
@@ -47,6 +51,9 @@ public class EmailAccountCacheProvider extends MailAppProvider {
@Override
public String getSuggestionAuthority() {
+ if (sSuggestionsAuthority == null) {
+ sSuggestionsAuthority = getContext().getString(R.string.authority_suggestions_provider);
+ }
return sSuggestionsAuthority;
}
}