Fixed static picture path

This commit is contained in:
Sylvain Berfini 2020-10-28 16:11:14 +01:00
parent fbe7986641
commit d25b153019
2 changed files with 4 additions and 0 deletions

View file

@ -255,6 +255,7 @@ class CoreContext(val context: Context, coreConfig: Config) {
core.zrtpSecretsFile = corePreferences.zrtpSecretsPath
core.callLogsDatabasePath = corePreferences.callHistoryDatabasePath
core.staticPicture = corePreferences.staticPicture
initUserCertificates()

View file

@ -399,6 +399,9 @@ class CorePreferences constructor(private val context: Context) {
val callHistoryDatabasePath: String
get() = context.filesDir.absolutePath + "/linphone-log-history.db"
val staticPicture: String
get() = context.filesDir.absolutePath + "/share/images/nowebcamcif.jpg"
fun copyAssetsFromPackage() {
copy("linphonerc_default", configPath)
copy("linphonerc_factory", factoryConfigPath, true)