mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 19:38:08 +00:00
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…
Add table
Reference in a new issue