summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorYu Ping Hu <yph@google.com>2013-07-26 16:09:49 -0700
committerYu Ping Hu <yph@google.com>2013-07-26 16:23:27 -0700
commit47bcb5a21a20ad59035ec4218e24cd45f1d49667 (patch)
treeeb6de1b7f1d4d2b7bf2926a884fb298148d59f6b /src
parent3d2f8b4be837ef3bbc68c42e691c98949fc80e46 (diff)
downloadandroid_packages_apps_Email-47bcb5a21a20ad59035ec4218e24cd45f1d49667.tar.gz
android_packages_apps_Email-47bcb5a21a20ad59035ec4218e24cd45f1d49667.tar.bz2
android_packages_apps_Email-47bcb5a21a20ad59035ec4218e24cd45f1d49667.zip
Cleanup service loading.
Authenticator upgrading no longer uses the services file to specify upgrades, so we can remove the fields associated with that functionality. Change-Id: I2122f18614d714a3d5a565fb4a6a547ddc010b6f
Diffstat (limited to 'src')
-rw-r--r--src/com/android/email/service/EmailServiceUtils.java16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/com/android/email/service/EmailServiceUtils.java b/src/com/android/email/service/EmailServiceUtils.java
index eebe5d936..f20498d23 100644
--- a/src/com/android/email/service/EmailServiceUtils.java
+++ b/src/com/android/email/service/EmailServiceUtils.java
@@ -175,7 +175,6 @@ public class EmailServiceUtils {
public CharSequence[] syncIntervals;
public int defaultSyncInterval;
public String inferPrefix;
- public boolean requiresAccountUpdate;
public boolean offerLoadMore;
public boolean requiresSetup;
public boolean hide;
@@ -425,21 +424,6 @@ public class EmailServiceUtils {
final TypedArray ta = res.obtainAttributes(xml, R.styleable.EmailServiceInfo);
info.protocol = ta.getString(R.styleable.EmailServiceInfo_protocol);
info.accountType = ta.getString(R.styleable.EmailServiceInfo_accountType);
- // Protocol upgrades are handled by the upgrade broadcast receiver.
- // However, we still create the entry from the old protocol to the new type.
- // TODO: Remove the need for this entry.
- final String newProtocol =
- ta.getString(R.styleable.EmailServiceInfo_replaceWith);
-
- if (newProtocol != null) {
- final EmailServiceInfo newInfo = getServiceInfo(context, newProtocol);
- if (newInfo == null) {
- throw new IllegalStateException(
- "Replacement service not found: " + newProtocol);
- }
- sServiceMap.put(info.protocol, newInfo);
- continue;
- }
info.name = ta.getString(R.styleable.EmailServiceInfo_name);
info.hide = ta.getBoolean(R.styleable.EmailServiceInfo_hide, false);
final String klass = ta.getString(R.styleable.EmailServiceInfo_serviceClass);