Added PGP load fail-safe

This commit is contained in:
M66B 2021-11-05 17:09:28 +01:00
parent 1a6560739e
commit 34afc56041
1 changed files with 4 additions and 0 deletions

View File

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