diff options
author | knuthy <knuthy@gmail.com> | 2014-09-20 18:43:22 +0200 |
---|---|---|
committer | knuthy <knuthy@gmail.com> | 2014-09-20 18:43:22 +0200 |
commit | ac6522cb9405d5d12a93fe955d2fc24351380c11 (patch) | |
tree | 1751ef651768899788e63e8002894881a41b1dcf /app/src/main/java | |
parent | 799d47f1811434251396c1d2ec193bf2ce9e23af (diff) |
a nasty bug!
Diffstat (limited to 'app/src/main/java')
-rw-r--r-- | app/src/main/java/com/zeapo/pwdstore/crypto/PgpHandler.java | 3 |
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 |