From 196813022a694b0b2a3b75c9e785bfd04bbd0ca6 Mon Sep 17 00:00:00 2001 From: zeapo Date: Sun, 17 Aug 2014 21:47:48 +0200 Subject: [PATCH] corrected a bug where cancel in openkeychain does not dismiss pgp dialog --- app/src/main/java/com/zeapo/pwdstore/crypto/PgpHandler.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/com/zeapo/pwdstore/crypto/PgpHandler.java b/app/src/main/java/com/zeapo/pwdstore/crypto/PgpHandler.java index 26d49db90..cbbc0c118 100644 --- a/app/src/main/java/com/zeapo/pwdstore/crypto/PgpHandler.java +++ b/app/src/main/java/com/zeapo/pwdstore/crypto/PgpHandler.java @@ -247,6 +247,10 @@ public class PgpHandler extends Activity implements OpenPgpServiceConnection.OnB break; } } + } else if (resultCode == RESULT_CANCELED) { + bindingDialog.dismiss(); + setResult(RESULT_CANCELED, data); + finish(); } }