Fixed crash when using VFS due to null context in SDK

This commit is contained in:
Sylvain Berfini 2022-04-08 14:22:45 +02:00
parent 6e70ea852e
commit de20faaaf2

View file

@ -41,6 +41,9 @@ class LinphoneApplication : Application() {
Factory.instance().setLogCollectionPath(context.filesDir.absolutePath)
Factory.instance().enableLogCollection(LogCollectionState.Enabled)
// For VFS
Factory.instance().setCacheDir(context.cacheDir.absolutePath)
corePreferences = CorePreferences(context)
corePreferences.copyAssetsFromPackage()