Update matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/Matrix.kt

Co-authored-by: Benoit Marty <benoitm@matrix.org>
This commit is contained in:
Adam Brown 2022-02-14 13:41:40 +00:00 committed by GitHub
parent 2f7f86b8bb
commit 2eb417ab05
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -101,7 +101,7 @@ class Matrix private constructor(context: Context, matrixConfiguration: MatrixCo
/** /**
* Creates a new instance of Matrix, it's recommended to manage this instance as a singleton. * Creates a new instance of Matrix, it's recommended to manage this instance as a singleton.
* To make use of the built in singleton use Matrix.initialise() and/or Matrix.getInstance(context) instead * To make use of the built in singleton use Matrix.initialize() and/or Matrix.getInstance(context) instead
**/ **/
fun createInstance(context: Context, matrixConfiguration: MatrixConfiguration): Matrix { fun createInstance(context: Context, matrixConfiguration: MatrixConfiguration): Matrix {
return Matrix(context.applicationContext, matrixConfiguration) return Matrix(context.applicationContext, matrixConfiguration)