Try to address #142

This commit is contained in:
Matthew Wong 2015-10-28 13:30:44 -04:00
parent 81abb7954d
commit 3fe7978142

View file

@ -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)) {