mirror of
https://github.com/etesync/android
synced 2024-11-22 07:58:09 +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) {
|
||||
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…
Reference in New Issue
Block a user