Fix AttachmentDownloadService for remove-exchange script

Now the source at least compiles fine.

Change-Id: I329ad08f81fd6ab23f28dd30023fe3e781ccc4fc
This commit is contained in:
Makoto Onuki 2011-01-28 11:19:59 -08:00
parent eb73f28d1a
commit 9c44430690
1 changed files with 3 additions and 2 deletions

View File

@ -679,11 +679,12 @@ public class AttachmentDownloadService extends Service implements Runnable {
if (serviceClass == null) {
String protocol = Account.getProtocol(mContext, accountId);
if (protocol == null) return null;
serviceClass = ControllerService.class;
// EXCHANGE-REMOVE-SECTION-START
if (protocol.equals("eas")) {
serviceClass = ExchangeService.class;
} else {
serviceClass = ControllerService.class;
}
// EXCHANGE-REMOVE-SECTION-END
mAccountServiceMap.put(accountId, serviceClass);
}
return serviceClass;