mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-12-24 07:58:50 -05:00
DecryptFiles: Reset state for new file decrytion
This commit is contained in:
parent
6e0938aa93
commit
3850ddea08
@ -88,6 +88,9 @@ public class DecryptFilesFragment extends DecryptFragment {
|
||||
mDecryptButton = view.findViewById(R.id.decrypt_file_action_decrypt);
|
||||
view.findViewById(R.id.decrypt_file_browse).setOnClickListener(new View.OnClickListener() {
|
||||
public void onClick(View v) {
|
||||
// reset state
|
||||
mPassphrase = null;
|
||||
mNfcDecryptedSessionKey = null;
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
|
||||
FileHelper.openDocument(DecryptFilesFragment.this, "*/*", REQUEST_CODE_INPUT);
|
||||
} else {
|
||||
@ -139,7 +142,6 @@ public class DecryptFilesFragment extends DecryptFragment {
|
||||
return;
|
||||
}
|
||||
|
||||
// askForOutputFilename();
|
||||
decryptOriginalFilename();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user