Remove unecessary indirection

This commit is contained in:
Benoit Marty 2022-05-02 11:59:31 +02:00 committed by Benoit Marty
parent 3fc4083aca
commit 08c67eaf0e
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ class Matrix(context: Context, matrixConfiguration: MatrixConfiguration) {
val appContext = context.applicationContext
Monarchy.init(appContext)
DaggerMatrixComponent.factory().create(appContext, matrixConfiguration).inject(this)
if (appContext.applicationContext !is Configuration.Provider) {
if (appContext !is Configuration.Provider) {
val configuration = Configuration.Builder()
.setExecutor(Executors.newCachedThreadPool())
.setWorkerFactory(matrixWorkerFactory)