Fix encryption password change not to crash.

It was a regression from the custom cert manager update.
pull/96/head
Tom Hacohen 5 years ago
parent f65459fe4c
commit 2e2841cea4

@ -61,9 +61,10 @@ open class ChangeEncryptionPasswordActivity : BaseActivity() {
fun changePasswordDo(old_password: String, new_password: String) {
val settings = AccountSettings(this, account)
val httpClient = HttpClient.Builder(this, settings).build().okHttpClient
doAsync {
val httpClient = HttpClient.Builder(this@ChangeEncryptionPasswordActivity, settings).setForeground(false).build().okHttpClient
Logger.log.info("Started deriving old key")
val old_key = Crypto.deriveKey(account.name, old_password)
Logger.log.info("Finished deriving old key")

Loading…
Cancel
Save