Fix issue with Apache HTTP Client not being on the classpath

This commit is contained in:
cketti 2018-06-02 23:18:41 +02:00
parent 3d09c81990
commit 606f8c2934
2 changed files with 5 additions and 2 deletions

View file

@ -4,7 +4,6 @@ import com.fsck.k9.Account
import com.fsck.k9.Preferences
import com.fsck.k9.backend.api.Backend
import com.fsck.k9.backend.webdav.WebDavBackend
import com.fsck.k9.mail.store.webdav.WebDavHttpClient
import com.fsck.k9.mail.store.webdav.WebDavStore
import com.fsck.k9.mailstore.K9BackendStorage
@ -18,6 +17,6 @@ class WebDavBackendFactory(private val preferences: Preferences) : BackendFactor
}
private fun createWebDavStore(account: Account): WebDavStore {
return WebDavStore(account, WebDavHttpClient.WebDavHttpClientFactory())
return WebDavStore(account)
}
}

View file

@ -91,6 +91,10 @@ public class WebDavStore extends RemoteStore {
private Folder sendFolder = null;
private Map<String, WebDavFolder> folderList = new HashMap<>();
public WebDavStore(StoreConfig storeConfig) throws MessagingException {
this(storeConfig, new WebDavHttpClient.WebDavHttpClientFactory());
}
public WebDavStore(StoreConfig storeConfig, WebDavHttpClient.WebDavHttpClientFactory clientFactory)
throws MessagingException {
super(storeConfig, null);