From a1541bf21ada46055da040ab071bb9eb13026346 Mon Sep 17 00:00:00 2001 From: Zeapo Date: Wed, 6 Aug 2014 21:54:31 +0100 Subject: send the file name without extension --- app/src/main/java/com/zeapo/pwdstore/PasswordStore.java | 2 +- app/src/main/java/com/zeapo/pwdstore/crypto/PgpHandler.java | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/com/zeapo/pwdstore/PasswordStore.java b/app/src/main/java/com/zeapo/pwdstore/PasswordStore.java index da90e33b..5f5d3d16 100644 --- a/app/src/main/java/com/zeapo/pwdstore/PasswordStore.java +++ b/app/src/main/java/com/zeapo/pwdstore/PasswordStore.java @@ -187,7 +187,7 @@ public class PasswordStore extends Activity implements ToCloneOrNot.OnFragmentI Intent intent = new Intent(this, PgpHandler.class); intent.putExtra("PGP-ID", FileUtils.readFileToString(PasswordRepository.getFile("/.gpg-id"))); - intent.putExtra("NAME", item.getName()); + intent.putExtra("NAME", item.toString()); intent.putExtra("FILE_PATH", item.getFile().getAbsolutePath()); intent.putExtra("Operation", "DECRYPT"); startActivityForResult(intent, 0); diff --git a/app/src/main/java/com/zeapo/pwdstore/crypto/PgpHandler.java b/app/src/main/java/com/zeapo/pwdstore/crypto/PgpHandler.java index 8e7cfe65..e55b2033 100644 --- a/app/src/main/java/com/zeapo/pwdstore/crypto/PgpHandler.java +++ b/app/src/main/java/com/zeapo/pwdstore/crypto/PgpHandler.java @@ -371,9 +371,8 @@ public class PgpHandler extends Activity { private void deletePassword() { new AlertDialog.Builder(this). - setMessage("Are you sure you want to delete the password " + - getIntent().getExtras().getString("NAME") - ) + setMessage("Are you sure you want to delete the password \"" + + getIntent().getExtras().getString("NAME") + "\"") .setPositiveButton("YES", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialogInterface, int i) { -- cgit v1.2.3