From 67ee24ef86f69550a1cbe9a7eecdbe6be4dfe74a Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Thu, 20 Aug 2020 21:52:33 +0530 Subject: Fix incorrect preference key (#1033) This too should have been base64 encoded Signed-off-by: Harsh Shandilya --- app/src/main/java/com/zeapo/pwdstore/PasswordStore.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') 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()) -- cgit v1.2.3