diff options
author | Matthew Wong <wongma7@outlook.com> | 2015-10-28 13:30:44 -0400 |
---|---|---|
committer | Matthew Wong <wongma7@outlook.com> | 2015-10-28 13:30:44 -0400 |
commit | 3fe79781422ce4c70d30ab34a3c76a3e54d6574a (patch) | |
tree | 5b4d72d89f9fb7a30d4332f816739e35290f9db1 /app/src | |
parent | 81abb7954d1bf8d1b6d4d3cbe76407d9b0351592 (diff) |
Try to address #142
Diffstat (limited to 'app/src')
-rw-r--r-- | app/src/main/java/com/zeapo/pwdstore/autofill/AutofillService.java | 4 |
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)) { |