mirror of
https://github.com/etesync/android
synced 2024-11-29 11:28:19 +00:00
Fix encryption password change not to crash.
It was a regression from the custom cert manager update.
This commit is contained in:
parent
f65459fe4c
commit
2e2841cea4
@ -61,9 +61,10 @@ open class ChangeEncryptionPasswordActivity : BaseActivity() {
|
|||||||
|
|
||||||
fun changePasswordDo(old_password: String, new_password: String) {
|
fun changePasswordDo(old_password: String, new_password: String) {
|
||||||
val settings = AccountSettings(this, account)
|
val settings = AccountSettings(this, account)
|
||||||
val httpClient = HttpClient.Builder(this, settings).build().okHttpClient
|
|
||||||
|
|
||||||
doAsync {
|
doAsync {
|
||||||
|
val httpClient = HttpClient.Builder(this@ChangeEncryptionPasswordActivity, settings).setForeground(false).build().okHttpClient
|
||||||
|
|
||||||
Logger.log.info("Started deriving old key")
|
Logger.log.info("Started deriving old key")
|
||||||
val old_key = Crypto.deriveKey(account.name, old_password)
|
val old_key = Crypto.deriveKey(account.name, old_password)
|
||||||
Logger.log.info("Finished deriving old key")
|
Logger.log.info("Finished deriving old key")
|
||||||
|
Loading…
Reference in New Issue
Block a user