send the file name without extension

This commit is contained in:
Zeapo 2014-08-06 21:54:31 +01:00
parent c3696b2f49
commit a1541bf21a
2 changed files with 3 additions and 4 deletions

View file

@ -187,7 +187,7 @@ public class PasswordStore extends Activity implements ToCloneOrNot.OnFragmentI
Intent intent = new Intent(this, PgpHandler.class); Intent intent = new Intent(this, PgpHandler.class);
intent.putExtra("PGP-ID", FileUtils.readFileToString(PasswordRepository.getFile("/.gpg-id"))); 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("FILE_PATH", item.getFile().getAbsolutePath());
intent.putExtra("Operation", "DECRYPT"); intent.putExtra("Operation", "DECRYPT");
startActivityForResult(intent, 0); startActivityForResult(intent, 0);

View file

@ -371,9 +371,8 @@ public class PgpHandler extends Activity {
private void deletePassword() { private void deletePassword() {
new AlertDialog.Builder(this). new AlertDialog.Builder(this).
setMessage("Are you sure you want to delete the password " + setMessage("Are you sure you want to delete the password \"" +
getIntent().getExtras().getString("NAME") getIntent().getExtras().getString("NAME") + "\"")
)
.setPositiveButton("YES", new DialogInterface.OnClickListener() { .setPositiveButton("YES", new DialogInterface.OnClickListener() {
@Override @Override
public void onClick(DialogInterface dialogInterface, int i) { public void onClick(DialogInterface dialogInterface, int i) {