Loading legacy/core/src/main/java/com/fsck/k9/job/K9WorkerFactory.kt +5 −0 Original line number Diff line number Diff line Loading @@ -13,6 +13,11 @@ class K9WorkerFactory : WorkerFactory() { workerClassName: String, workerParameters: WorkerParameters, ): ListenableWorker? { // Don't attempt to load classes outside of our namespace. if (!workerClassName.startsWith("com.fsck.k9")) { return null } val workerClass = Class.forName(workerClassName).kotlin return getKoin().getOrNull(workerClass) { parametersOf(workerParameters) } } Loading legacy/core/src/main/java/com/fsck/k9/job/MailSyncWorker.kt +1 −0 Original line number Diff line number Diff line Loading @@ -11,6 +11,7 @@ import com.fsck.k9.controller.MessagingController import com.fsck.k9.mail.AuthType import timber.log.Timber // IMPORTANT: Update K9WorkerFactory when moving this class and the FQCN no longer starts with "com.fsck.k9". class MailSyncWorker( private val messagingController: MessagingController, private val preferences: Preferences, Loading legacy/ui/legacy/src/main/java/com/fsck/k9/account/AccountRemoverWorker.kt +1 −0 Original line number Diff line number Diff line Loading @@ -14,6 +14,7 @@ import com.fsck.k9.ui.R /** * A [Worker] to remove an account in the background. */ // IMPORTANT: Update K9WorkerFactory when moving this class and the FQCN no longer starts with "com.fsck.k9". class AccountRemoverWorker( private val accountRemover: AccountRemover, private val notificationController: BackgroundWorkNotificationController, Loading Loading
legacy/core/src/main/java/com/fsck/k9/job/K9WorkerFactory.kt +5 −0 Original line number Diff line number Diff line Loading @@ -13,6 +13,11 @@ class K9WorkerFactory : WorkerFactory() { workerClassName: String, workerParameters: WorkerParameters, ): ListenableWorker? { // Don't attempt to load classes outside of our namespace. if (!workerClassName.startsWith("com.fsck.k9")) { return null } val workerClass = Class.forName(workerClassName).kotlin return getKoin().getOrNull(workerClass) { parametersOf(workerParameters) } } Loading
legacy/core/src/main/java/com/fsck/k9/job/MailSyncWorker.kt +1 −0 Original line number Diff line number Diff line Loading @@ -11,6 +11,7 @@ import com.fsck.k9.controller.MessagingController import com.fsck.k9.mail.AuthType import timber.log.Timber // IMPORTANT: Update K9WorkerFactory when moving this class and the FQCN no longer starts with "com.fsck.k9". class MailSyncWorker( private val messagingController: MessagingController, private val preferences: Preferences, Loading
legacy/ui/legacy/src/main/java/com/fsck/k9/account/AccountRemoverWorker.kt +1 −0 Original line number Diff line number Diff line Loading @@ -14,6 +14,7 @@ import com.fsck.k9.ui.R /** * A [Worker] to remove an account in the background. */ // IMPORTANT: Update K9WorkerFactory when moving this class and the FQCN no longer starts with "com.fsck.k9". class AccountRemoverWorker( private val accountRemover: AccountRemover, private val notificationController: BackgroundWorkNotificationController, Loading