Fix incorrect preference key (#1033)

This too should have been base64 encoded

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya 2020-08-20 21:52:33 +05:30 committed by GitHub
parent cfb42f02f5
commit 67ee24ef86
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -758,7 +758,7 @@ class PasswordStore : AppCompatActivity(R.layout.activity_pwdstore) {
//associate the new category with the last category's timestamp in history //associate the new category with the last category's timestamp in history
val preference = getSharedPreferences("recent_password_history", Context.MODE_PRIVATE) val preference = getSharedPreferences("recent_password_history", Context.MODE_PRIVATE)
val timestamp = preference.getString(oldCategory.file.absolutePath) val timestamp = preference.getString(oldCategory.file.absolutePath.base64())
if (timestamp != null) { if (timestamp != null) {
preference.edit { preference.edit {
remove(oldCategory.file.absolutePath.base64()) remove(oldCategory.file.absolutePath.base64())