summaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
authorHarsh Shandilya <msfjarvis@gmail.com>2020-08-20 21:52:33 +0530
committerGitHub <noreply@github.com>2020-08-20 21:52:33 +0530
commit67ee24ef86f69550a1cbe9a7eecdbe6be4dfe74a (patch)
tree079a10c01c15d5aa83e7ed139f2d358cd8123018 /app/src
parentcfb42f02f5ce7cb9c58e757007e7258e9db0559f (diff)
Fix incorrect preference key (#1033)
This too should have been base64 encoded Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to 'app/src')
-rw-r--r--app/src/main/java/com/zeapo/pwdstore/PasswordStore.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/com/zeapo/pwdstore/PasswordStore.kt b/app/src/main/java/com/zeapo/pwdstore/PasswordStore.kt
index fe1ab085..d70417bc 100644
--- a/app/src/main/java/com/zeapo/pwdstore/PasswordStore.kt
+++ b/app/src/main/java/com/zeapo/pwdstore/PasswordStore.kt
@@ -758,7 +758,7 @@ class PasswordStore : AppCompatActivity(R.layout.activity_pwdstore) {
//associate the new category with the last category's timestamp in history
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) {
preference.edit {
remove(oldCategory.file.absolutePath.base64())