summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorknuthy <knuthy@gmail.com>2014-09-20 18:43:22 +0200
committerknuthy <knuthy@gmail.com>2014-09-20 18:43:22 +0200
commitac6522cb9405d5d12a93fe955d2fc24351380c11 (patch)
tree1751ef651768899788e63e8002894881a41b1dcf
parent799d47f1811434251396c1d2ec193bf2ce9e23af (diff)
a nasty bug!
-rw-r--r--app/src/main/java/com/zeapo/pwdstore/crypto/PgpHandler.java3
1 files changed, 2 insertions, 1 deletions
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 4dd4e7e6..f80893a4 100644
--- a/app/src/main/java/com/zeapo/pwdstore/crypto/PgpHandler.java
+++ b/app/src/main/java/com/zeapo/pwdstore/crypto/PgpHandler.java
@@ -118,7 +118,8 @@ public class PgpHandler extends Activity implements OpenPgpServiceConnection.OnB
@Override
public void onStop(){
super.onStop();
- this.mServiceConnection.unbindFromService();
+ if (this.mServiceConnection.isBound())
+ this.mServiceConnection.unbindFromService();
}
@Override