From cab78bf4c1699ecfe63baa7c55b63308a1dae1f1 Mon Sep 17 00:00:00 2001 From: Thialfihar Date: Fri, 14 May 2010 11:43:07 +0000 Subject: [PATCH] remove .pgp for filename guessing for decryption --- src/org/thialfihar/android/apg/DecryptActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/thialfihar/android/apg/DecryptActivity.java b/src/org/thialfihar/android/apg/DecryptActivity.java index eb353353e..377f9e9ea 100644 --- a/src/org/thialfihar/android/apg/DecryptActivity.java +++ b/src/org/thialfihar/android/apg/DecryptActivity.java @@ -273,7 +273,7 @@ public class DecryptActivity extends BaseActivity { mInputFilename = mFilename.getText().toString(); File file = new File(mInputFilename); String filename = file.getName(); - if (filename.endsWith(".asc") || filename.endsWith(".gpg")) { + if (filename.endsWith(".asc") || filename.endsWith(".gpg") || filename.endsWith(".pgp")) { filename = filename.substring(0, filename.length() - 4); } mOutputFilename = Constants.path.app_dir + "/" + filename;