summaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
authorMatthew Wong <wongma7@outlook.com>2015-10-28 13:30:44 -0400
committerMatthew Wong <wongma7@outlook.com>2015-10-28 13:30:44 -0400
commit3fe79781422ce4c70d30ab34a3c76a3e54d6574a (patch)
tree5b4d72d89f9fb7a30d4332f816739e35290f9db1 /app/src
parent81abb7954d1bf8d1b6d4d3cbe76407d9b0351592 (diff)
Try to address #142
Diffstat (limited to 'app/src')
-rw-r--r--app/src/main/java/com/zeapo/pwdstore/autofill/AutofillService.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/src/main/java/com/zeapo/pwdstore/autofill/AutofillService.java b/app/src/main/java/com/zeapo/pwdstore/autofill/AutofillService.java
index 877a09da..1cba6c9d 100644
--- a/app/src/main/java/com/zeapo/pwdstore/autofill/AutofillService.java
+++ b/app/src/main/java/com/zeapo/pwdstore/autofill/AutofillService.java
@@ -228,6 +228,10 @@ public class AutofillService extends AccessibilityService {
}
ByteArrayOutputStream os = new ByteArrayOutputStream();
+ // the service was disconnected, need to bind again
+ if (serviceConnection.getService() == null) {
+ serviceConnection.bindToService();
+ }
OpenPgpApi api = new OpenPgpApi(AutofillService.this, serviceConnection.getService());
Intent result = api.executeApi(data, is, os);
switch (result.getIntExtra(OpenPgpApi.RESULT_CODE, OpenPgpApi.RESULT_CODE_ERROR)) {