Remove unecessary indirection
This commit is contained in:
parent
3fc4083aca
commit
08c67eaf0e
|
@ -64,7 +64,7 @@ class Matrix(context: Context, matrixConfiguration: MatrixConfiguration) {
|
||||||
val appContext = context.applicationContext
|
val appContext = context.applicationContext
|
||||||
Monarchy.init(appContext)
|
Monarchy.init(appContext)
|
||||||
DaggerMatrixComponent.factory().create(appContext, matrixConfiguration).inject(this)
|
DaggerMatrixComponent.factory().create(appContext, matrixConfiguration).inject(this)
|
||||||
if (appContext.applicationContext !is Configuration.Provider) {
|
if (appContext !is Configuration.Provider) {
|
||||||
val configuration = Configuration.Builder()
|
val configuration = Configuration.Builder()
|
||||||
.setExecutor(Executors.newCachedThreadPool())
|
.setExecutor(Executors.newCachedThreadPool())
|
||||||
.setWorkerFactory(matrixWorkerFactory)
|
.setWorkerFactory(matrixWorkerFactory)
|
||||||
|
|
Loading…
Reference in New Issue