providing more alternatives when Matrix.getInstance fails

This commit is contained in:
Adam Brown 2022-02-14 15:53:34 +00:00
parent fd2d9287e7
commit d05af1cb04
1 changed files with 2 additions and 1 deletions

View File

@ -129,7 +129,8 @@ class Matrix private constructor(context: Context, matrixConfiguration: MatrixCo
instance = Matrix(appContext, matrixConfiguration)
} else {
throw IllegalStateException("Matrix is not initialized properly." +
" You should call Matrix.initialize or let your application implements MatrixConfiguration.Provider.")
" If you want to manage your own Matrix instance use Matrix.createInstance" +
" otherwise you should call Matrix.initialize or let your application implement MatrixConfiguration.Provider.")
}
}
return instance