mirror of
https://github.com/etesync/android
synced 2024-11-26 01:48:34 +00:00
SettingsDB: fix file descriptor leaks.
This commit is contained in:
parent
5857ed51d0
commit
b70e8903c5
@ -210,6 +210,8 @@ class App : Application() {
|
|||||||
val dbHelper = ServiceDB.OpenHelper(this)
|
val dbHelper = ServiceDB.OpenHelper(this)
|
||||||
|
|
||||||
migrateServices(dbHelper)
|
migrateServices(dbHelper)
|
||||||
|
|
||||||
|
dbHelper.close()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -107,6 +107,8 @@ class HttpClient private constructor(
|
|||||||
//if (BuildConfig.customCerts)
|
//if (BuildConfig.customCerts)
|
||||||
customCertManager(CustomCertManager(context, true,
|
customCertManager(CustomCertManager(context, true,
|
||||||
!(settings.getBoolean(App.DISTRUST_SYSTEM_CERTIFICATES,false)), true))
|
!(settings.getBoolean(App.DISTRUST_SYSTEM_CERTIFICATES,false)), true))
|
||||||
|
|
||||||
|
dbHelper.close()
|
||||||
}
|
}
|
||||||
|
|
||||||
// use account settings for authentication
|
// use account settings for authentication
|
||||||
|
Loading…
Reference in New Issue
Block a user