remove .pgp for filename guessing for decryption

This commit is contained in:
Thialfihar 2010-05-14 11:43:07 +00:00
parent 1edc2c69f2
commit cab78bf4c1

View File

@ -273,7 +273,7 @@ public class DecryptActivity extends BaseActivity {
mInputFilename = mFilename.getText().toString(); mInputFilename = mFilename.getText().toString();
File file = new File(mInputFilename); File file = new File(mInputFilename);
String filename = file.getName(); 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); filename = filename.substring(0, filename.length() - 4);
} }
mOutputFilename = Constants.path.app_dir + "/" + filename; mOutputFilename = Constants.path.app_dir + "/" + filename;