Set current thread contextClassLoader

pull/1061/head
Alex Baker 4 years ago
parent e3bcc2f7c9
commit 1659afb34e

@ -62,6 +62,8 @@ class CaldavSynchronizer @Inject constructor(
}
suspend fun sync(account: CaldavAccount) {
Thread.currentThread().contextClassLoader = context.classLoader
if (!inventory.hasPro()) {
setError(account, context.getString(R.string.requires_pro_subscription))
return

@ -48,6 +48,8 @@ class EteSynchronizer @Inject constructor(
}
suspend fun sync(account: CaldavAccount) {
Thread.currentThread().contextClassLoader = context.classLoader
if (!inventory.hasPro()) {
setError(account, context.getString(R.string.requires_pro_subscription))
return

Loading…
Cancel
Save