diff options
author | Dominik Schürmann <dominik@dominikschuermann.de> | 2014-07-31 19:19:11 +0200 |
---|---|---|
committer | Dominik Schürmann <dominik@dominikschuermann.de> | 2014-07-31 19:19:11 +0200 |
commit | 279ddf7cbeca1d09840d0551b7a50e1e92e056ba (patch) | |
tree | 6f884e8b5c84b65c40682454bb0fa2e62f1e2d82 /OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/CreateKeyFinalFragment.java | |
parent | 258bd3a44f88b58be1d38545c9b30c55c72c8070 (diff) | |
download | open-keychain-279ddf7cbeca1d09840d0551b7a50e1e92e056ba.tar.gz open-keychain-279ddf7cbeca1d09840d0551b7a50e1e92e056ba.tar.bz2 open-keychain-279ddf7cbeca1d09840d0551b7a50e1e92e056ba.zip |
Handle result in create key
Diffstat (limited to 'OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/CreateKeyFinalFragment.java')
-rw-r--r-- | OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/CreateKeyFinalFragment.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/CreateKeyFinalFragment.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/CreateKeyFinalFragment.java index c083539da..c2c983b95 100644 --- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/CreateKeyFinalFragment.java +++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/CreateKeyFinalFragment.java @@ -152,8 +152,13 @@ public class CreateKeyFinalFragment extends Fragment { } if (mUploadCheckbox.isChecked()) { - // result will be displayed after upload - uploadKey(result); + if (result.getResult() == OperationResultParcel.RESULT_OK) { + // result will be displayed after upload + uploadKey(result); + } else { + // display result on error without finishing activity + result.createNotify(getActivity()); + } } else { // TODO: return result result.createNotify(getActivity()); |