Rename API

This commit is contained in:
Benoit Marty 2022-05-02 11:45:34 +02:00 committed by Benoit Marty
parent 7040369529
commit 92c0d97110
2 changed files with 2 additions and 2 deletions

View File

@ -107,7 +107,7 @@ class Matrix private constructor(context: Context, matrixConfiguration: MatrixCo
/**
* Get the worker factory. The returned value has to be provided to `WorkConfiguration.Builder()`
*/
fun workerFactory(): WorkerFactory = matrixWorkerFactory
fun getWorkerFactory(): WorkerFactory = matrixWorkerFactory
/**
* Register an API interceptor, to be able to be notified when the specified API got a response

View File

@ -224,7 +224,7 @@ class VectorApplication :
override fun getWorkManagerConfiguration(): WorkConfiguration {
return WorkConfiguration.Builder()
.setWorkerFactory(matrix.workerFactory())
.setWorkerFactory(matrix.getWorkerFactory())
.setExecutor(Executors.newCachedThreadPool())
.build()
}