summaryrefslogtreecommitdiffstats
path: root/emailcommon
diff options
context:
space:
mode:
authorYu Ping Hu <yph@google.com>2013-10-18 14:04:29 -0700
committerYu Ping Hu <yph@google.com>2013-10-18 14:09:09 -0700
commita5a28ffb63785eefe8602174316d9ba6233ac428 (patch)
tree376840c2a5c2e44a4a63d9148ee9c3c22883b462 /emailcommon
parent7c8d480276123eca0d57179a4874f0046aa57d66 (diff)
downloadandroid_packages_apps_Email-a5a28ffb63785eefe8602174316d9ba6233ac428.tar.gz
android_packages_apps_Email-a5a28ffb63785eefe8602174316d9ba6233ac428.tar.bz2
android_packages_apps_Email-a5a28ffb63785eefe8602174316d9ba6233ac428.zip
Do not require RPC for getCapabilities.
Bug: 11241892 Change-Id: I3da136c9035414c821ee2038da01134c551bb9dd
Diffstat (limited to 'emailcommon')
-rw-r--r--emailcommon/src/com/android/emailcommon/service/EmailServiceProxy.java15
1 files changed, 3 insertions, 12 deletions
diff --git a/emailcommon/src/com/android/emailcommon/service/EmailServiceProxy.java b/emailcommon/src/com/android/emailcommon/service/EmailServiceProxy.java
index 447eb6c22..f2173c327 100644
--- a/emailcommon/src/com/android/emailcommon/service/EmailServiceProxy.java
+++ b/emailcommon/src/com/android/emailcommon/service/EmailServiceProxy.java
@@ -423,20 +423,11 @@ public class EmailServiceProxy extends ServiceProxy implements IEmailService {
}, "sendMail");
}
+ @Deprecated
@Override
public int getCapabilities(final Account acct) throws RemoteException {
- setTask(new ProxyTask() {
- @Override
- public void run() throws RemoteException{
- mReturn = mService.getCapabilities(acct);
- }
- }, "getCapabilities");
- waitForCompletion();
- if (mReturn == null) {
- return 0;
- } else {
- return (Integer)mReturn;
- }
+ //This function should not be used; see {@link EmailProvider#getCapabilities} instead.
+ return 0;
}
/**
* Request that the account be updated for this service; this call is synchronous