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()) { if (mUploadCheckbox.isChecked()) {
// result will be displayed after upload if (result.getResult() == OperationResultParcel.RESULT_OK) {
uploadKey(result); // result will be displayed after upload
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());