Created
October 29, 2016 11:43
-
-
Save flschweiger/6fa2693f05c36fc0dc889e53d4a2c4a1 to your computer and use it in GitHub Desktop.
Get the result from the ConfirmDeviceCredentialIntent.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
protected void onActivityResult(int requestCode, | |
int resultCode, Intent data) { | |
if (requestCode == REQUEST_CODE_CREDENTIALS) { | |
// Challenge completed, proceed with using cipher | |
if (resultCode == RESULT_OK) { | |
doSomeDecryptionHere(); | |
} else { | |
// The user canceled or didn’t complete the lock screen | |
// operation. Go to error/cancellation flow. | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment