mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-27 11:12:15 -05:00
remove .pgp for filename guessing for decryption
This commit is contained in:
parent
1edc2c69f2
commit
cab78bf4c1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user