summaryrefslogtreecommitdiff
path: root/app/src/main/java
diff options
context:
space:
mode:
authorZeapo <mohamed@zenadi.com>2014-08-06 21:54:31 +0100
committerZeapo <mohamed@zenadi.com>2014-08-06 21:54:31 +0100
commita1541bf21ada46055da040ab071bb9eb13026346 (patch)
tree0dc335a34c7e8eb158d1fbdf22f22a62c27288fd /app/src/main/java
parentc3696b2f495425436a42e058e7f50a7229d343cc (diff)
send the file name without extension
Diffstat (limited to 'app/src/main/java')
-rw-r--r--app/src/main/java/com/zeapo/pwdstore/PasswordStore.java2
-rw-r--r--app/src/main/java/com/zeapo/pwdstore/crypto/PgpHandler.java5
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) {