marking the matrix provision as a singleton to avoid reinitialising
This commit is contained in:
parent
0390994e14
commit
5ff420f4f0
|
@ -118,6 +118,7 @@ object VectorStaticModule {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Provides
|
@Provides
|
||||||
|
@Singleton
|
||||||
fun providesMatrix(context: Context, configuration: MatrixConfiguration): Matrix {
|
fun providesMatrix(context: Context, configuration: MatrixConfiguration): Matrix {
|
||||||
Matrix.initialize(context, configuration)
|
Matrix.initialize(context, configuration)
|
||||||
return Matrix.getInstance(context)
|
return Matrix.getInstance(context)
|
||||||
|
|
Loading…
Reference in New Issue