Fix AttachmentDownloadService for remove-exchange script
Now the source at least compiles fine. Change-Id: I329ad08f81fd6ab23f28dd30023fe3e781ccc4fc
This commit is contained in:
parent
eb73f28d1a
commit
9c44430690
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue