Handle result in create key

This commit is contained in:
Dominik Schürmann 2014-07-31 19:19:11 +02:00
parent 258bd3a44f
commit 279ddf7cbe

View file

@ -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());