Skip to content

Commit

Permalink
Fixed restoring encrypted notes
Browse files Browse the repository at this point in the history
On first restore, when no password was present into app's preferences yet, the encrypted notes were stored into database without content due to password check failure
  • Loading branch information
federicoiosue committed May 22, 2021
1 parent 0c593df commit 6c90bce
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class Security private constructor(){
Base64.encodeToString(cipher.doFinal(clearText), Base64.DEFAULT)
} catch (e: Exception) {
LogDelegate.e("Something is gone wrong encrypting", e)
""
value
}
}

Expand Down

0 comments on commit 6c90bce

Please sign in to comment.