aboutsummaryrefslogtreecommitdiffstats
path: root/OpenPGP-Keychain/src/org/sufficientlysecure/keychain/ui/DecryptActivity.java
diff options
context:
space:
mode:
authorDominik Schürmann <dominik@dominikschuermann.de>2014-01-18 22:37:00 +0100
committerDominik Schürmann <dominik@dominikschuermann.de>2014-01-18 22:37:00 +0100
commit96936dda23dc8854c0165ecf49720173aeb21ea2 (patch)
tree471c808694a27de745de554d31718500e20cfa52 /OpenPGP-Keychain/src/org/sufficientlysecure/keychain/ui/DecryptActivity.java
parente8b9dfe379c17b3d0df39838e57bfb52a98c1fc9 (diff)
downloadopen-keychain-96936dda23dc8854c0165ecf49720173aeb21ea2.tar.gz
open-keychain-96936dda23dc8854c0165ecf49720173aeb21ea2.tar.bz2
open-keychain-96936dda23dc8854c0165ecf49720173aeb21ea2.zip
handle onActivityResult in FileDialogFragment directly
Diffstat (limited to 'OpenPGP-Keychain/src/org/sufficientlysecure/keychain/ui/DecryptActivity.java')
-rw-r--r--OpenPGP-Keychain/src/org/sufficientlysecure/keychain/ui/DecryptActivity.java17
1 files changed, 1 insertions, 16 deletions
diff --git a/OpenPGP-Keychain/src/org/sufficientlysecure/keychain/ui/DecryptActivity.java b/OpenPGP-Keychain/src/org/sufficientlysecure/keychain/ui/DecryptActivity.java
index 6cc0b3b5a..e91630316 100644
--- a/OpenPGP-Keychain/src/org/sufficientlysecure/keychain/ui/DecryptActivity.java
+++ b/OpenPGP-Keychain/src/org/sufficientlysecure/keychain/ui/DecryptActivity.java
@@ -629,8 +629,7 @@ public class DecryptActivity extends DrawerActivity {
mFileDialog = FileDialogFragment.newInstance(messenger,
getString(R.string.title_decrypt_to_file),
- getString(R.string.specify_file_to_decrypt_to), mOutputFilename, null,
- Id.request.output_filename);
+ getString(R.string.specify_file_to_decrypt_to), mOutputFilename, null);
mFileDialog.show(getSupportFragmentManager(), "fileDialog");
}
@@ -826,20 +825,6 @@ public class DecryptActivity extends DrawerActivity {
return;
}
- case Id.request.output_filename: {
- if (resultCode == RESULT_OK && data != null) {
- try {
- String path = FileHelper.getPath(this, data.getData());
- Log.d(Constants.TAG, "path=" + path);
-
- mFileDialog.setFilename(path);
- } catch (NullPointerException e) {
- Log.e(Constants.TAG, "Nullpointer while retrieving path!");
- }
- }
- return;
- }
-
// this request is returned after LookupUnknownKeyDialogFragment started
// KeyServerQueryActivity and user looked uo key
case Id.request.look_up_key_id: {