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
|
||||
@Singleton
|
||||
fun providesMatrix(context: Context, configuration: MatrixConfiguration): Matrix {
|
||||
Matrix.initialize(context, configuration)
|
||||
return Matrix.getInstance(context)
|
||||
|
|
Loading…
Reference in New Issue