send the file name without extension
This commit is contained in:
parent
c3696b2f49
commit
a1541bf21a
2 changed files with 3 additions and 4 deletions
|
@ -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);
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue