Fixed crash when using VFS due to null context in SDK
This commit is contained in:
parent
6e70ea852e
commit
de20faaaf2
1 changed files with 3 additions and 0 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in a new issue