mirror of https://github.com/M66B/FairEmail.git
Added PGP load fail-safe
This commit is contained in:
parent
1a6560739e
commit
34afc56041
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue