Added PGP load fail-safe

pull/194/merge
M66B 3 years ago
parent 1a6560739e
commit 34afc56041

@ -1452,6 +1452,7 @@ public class FragmentCompose extends FragmentBase {
pgpService = new OpenPgpServiceConnection(getContext(), pkg, new OpenPgpServiceConnection.OnBound() { pgpService = new OpenPgpServiceConnection(getContext(), pkg, new OpenPgpServiceConnection.OnBound() {
@Override @Override
public void onBound(IOpenPgpService2 service) { public void onBound(IOpenPgpService2 service) {
Log.i("Bound to " + pkg);
load.run(); load.run();
} }
@ -1462,6 +1463,9 @@ public class FragmentCompose extends FragmentBase {
} }
}); });
pgpService.bindToService(); pgpService.bindToService();
// Fall-safe
getMainHandler().postDelayed(load, 250);
} }
@Override @Override

Loading…
Cancel
Save