diff options
author | knuthy <knuthy@gmail.com> | 2014-09-13 10:22:34 +0200 |
---|---|---|
committer | knuthy <knuthy@gmail.com> | 2014-09-13 10:22:34 +0200 |
commit | e9bf9c9369bdf1d3d4cd99c123070377ce92e504 (patch) | |
tree | 8e7a72e674d10931f212f1b70f4169871b296031 /app/src/main/java/com | |
parent | a690f477463532dec08d0fe93e403f9b5ff1a405 (diff) |
unbind when leaving activity
This solves the issue where OpenKeyChain shows a dialog even if the application is hidden
Diffstat (limited to 'app/src/main/java/com')
-rw-r--r-- | app/src/main/java/com/zeapo/pwdstore/crypto/PgpHandler.java | 11 |
1 files changed, 11 insertions, 0 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 36660a51..4dd4e7e6 100644 --- a/app/src/main/java/com/zeapo/pwdstore/crypto/PgpHandler.java +++ b/app/src/main/java/com/zeapo/pwdstore/crypto/PgpHandler.java @@ -116,6 +116,12 @@ public class PgpHandler extends Activity implements OpenPgpServiceConnection.OnB } @Override + public void onStop(){ + super.onStop(); + this.mServiceConnection.unbindFromService(); + } + + @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.pgp_handler, menu); @@ -509,4 +515,9 @@ public class PgpHandler extends Activity implements OpenPgpServiceConnection.OnB } } + @Override + public void onError(Exception e) { + + } + } |