mirror of
https://github.com/android-password-store/Android-Password-Store
synced 2025-08-30 05:48:09 +00:00
check that the data we get from OpenKeychain is not null
This commit is contained in:
parent
3df0805976
commit
7e7a98e80a
@ -394,6 +394,10 @@ public class PgpHandler extends AppCompatActivity implements OpenPgpServiceConne
|
|||||||
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
|
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
|
||||||
super.onActivityResult(requestCode, resultCode, data);
|
super.onActivityResult(requestCode, resultCode, data);
|
||||||
Log.d(Constants.TAG, "onActivityResult resultCode: " + resultCode);
|
Log.d(Constants.TAG, "onActivityResult resultCode: " + resultCode);
|
||||||
|
if (data == null) {
|
||||||
|
setResult(RESULT_CANCELED, null);
|
||||||
|
finish();
|
||||||
|
}
|
||||||
|
|
||||||
// try again after user interaction
|
// try again after user interaction
|
||||||
if (resultCode == RESULT_OK) {
|
if (resultCode == RESULT_OK) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user