Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
@Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {
// handle error if one occurs
switch (requestCode) {
case REQUEST_CODE_MASKED_WALLET:
switch (resultCode) {
case Activity.RESULT_OK:
if (data != null) {
MaskedWallet maskedWallet =
data.getParcelableExtra(WalletConstants.EXTRA_MASKED_WALLET);
launchConfirmationPage(maskedWallet);
}
break;
case Activity.RESULT_CANCELED:
break;
default:
handleError(errorCode);
break;
}
break;
case WalletConstants.RESULT_ERROR:
handleError(errorCode);
break;
default:
super.onActivityResult(requestCode, resultCode, data);
break;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment