marking the matrix provision as a singleton to avoid reinitialising

This commit is contained in:
Adam Brown 2022-02-08 15:56:07 +00:00
parent 0390994e14
commit 5ff420f4f0
1 changed files with 1 additions and 0 deletions

View File

@ -118,6 +118,7 @@ object VectorStaticModule {
}
@Provides
@Singleton
fun providesMatrix(context: Context, configuration: MatrixConfiguration): Matrix {
Matrix.initialize(context, configuration)
return Matrix.getInstance(context)