mirror of
https://github.com/moparisthebest/open-keychain
synced 2025-01-31 23:20:20 -05:00
Handle result in create key
This commit is contained in:
parent
258bd3a44f
commit
279ddf7cbe
@ -152,8 +152,13 @@ public class CreateKeyFinalFragment extends Fragment {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (mUploadCheckbox.isChecked()) {
|
if (mUploadCheckbox.isChecked()) {
|
||||||
|
if (result.getResult() == OperationResultParcel.RESULT_OK) {
|
||||||
// result will be displayed after upload
|
// result will be displayed after upload
|
||||||
uploadKey(result);
|
uploadKey(result);
|
||||||
|
} else {
|
||||||
|
// display result on error without finishing activity
|
||||||
|
result.createNotify(getActivity());
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
// TODO: return result
|
// TODO: return result
|
||||||
result.createNotify(getActivity());
|
result.createNotify(getActivity());
|
||||||
|
Loading…
Reference in New Issue
Block a user