From 8ef319cc3f9cec25a5defc38f1bbdfb196689a2e Mon Sep 17 00:00:00 2001 From: Marc Blank Date: Thu, 21 Jun 2012 11:23:52 -0700 Subject: [PATCH] Cleanup of services.xml * Document service attributes * Turn magic numbers into enums * Remove unused attribute Change-Id: I463c64c5c9f589946dc9e27b4f630170ac46bafc --- email2/res/values/attrs.xml | 21 ++++++- email2/res/xml/services.xml | 61 +++++++++++++++---- .../email/service/EmailServiceUtils.java | 2 - 3 files changed, 66 insertions(+), 18 deletions(-) diff --git a/email2/res/values/attrs.xml b/email2/res/values/attrs.xml index 56acc12cd..7faf95d24 100644 --- a/email2/res/values/attrs.xml +++ b/email2/res/values/attrs.xml @@ -36,16 +36,31 @@ - - + + + + + + + + + - + + + + + + + + + diff --git a/email2/res/xml/services.xml b/email2/res/xml/services.xml index 443cfda58..5cbb1f9a3 100644 --- a/email2/res/xml/services.xml +++ b/email2/res/xml/services.xml @@ -14,6 +14,39 @@ limitations under the License. --> + + diff --git a/email2/src/com/android/email/service/EmailServiceUtils.java b/email2/src/com/android/email/service/EmailServiceUtils.java index 4d68b3474..6c40cda8c 100644 --- a/email2/src/com/android/email/service/EmailServiceUtils.java +++ b/email2/src/com/android/email/service/EmailServiceUtils.java @@ -144,7 +144,6 @@ public class EmailServiceUtils { public int defaultLocalDeletes; public boolean offerPrefix; public boolean usesAutodiscover; - public boolean offerPush; public boolean offerLookback; public int defaultLookback; public boolean syncChanges; @@ -233,7 +232,6 @@ public class EmailServiceUtils { info.usesSmtp = ta.getBoolean(R.styleable.EmailServiceInfo_usesSmtp, false); info.usesAutodiscover = ta.getBoolean(R.styleable.EmailServiceInfo_usesAutodiscover, false); - info.offerPush = ta.getBoolean(R.styleable.EmailServiceInfo_offerPush, false); info.offerLookback = ta.getBoolean(R.styleable.EmailServiceInfo_offerLookback, false); info.defaultLookback =