mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-29 11:15:51 +00:00
Added PGP service logging
This commit is contained in:
parent
c66b24fa35
commit
7742057af9
2 changed files with 28 additions and 6 deletions
|
@ -135,6 +135,7 @@ import org.jsoup.nodes.Node;
|
|||
import org.jsoup.nodes.TextNode;
|
||||
import org.jsoup.select.Elements;
|
||||
import org.jsoup.select.NodeFilter;
|
||||
import org.openintents.openpgp.IOpenPgpService2;
|
||||
import org.openintents.openpgp.OpenPgpError;
|
||||
import org.openintents.openpgp.util.OpenPgpApi;
|
||||
import org.openintents.openpgp.util.OpenPgpServiceConnection;
|
||||
|
@ -882,9 +883,19 @@ public class FragmentCompose extends FragmentBase {
|
|||
tvNoInternetAttachments.setVisibility(View.GONE);
|
||||
grpUnusedImagesHint.setVisibility(View.GONE);
|
||||
|
||||
String pkg = Helper.getOpenKeychainPackage(getContext());
|
||||
Log.i("Binding to " + pkg);
|
||||
pgpService = new OpenPgpServiceConnection(getContext(), pkg);
|
||||
final String pkg = Helper.getOpenKeychainPackage(getContext());
|
||||
Log.i("PGP binding to " + pkg);
|
||||
pgpService = new OpenPgpServiceConnection(getContext(), pkg, new OpenPgpServiceConnection.OnBound() {
|
||||
@Override
|
||||
public void onBound(IOpenPgpService2 service) {
|
||||
Log.i("PGP bound to " + pkg);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError(Exception ex) {
|
||||
Log.e("PGP", ex);
|
||||
}
|
||||
});
|
||||
pgpService.bindToService();
|
||||
|
||||
return view;
|
||||
|
|
|
@ -145,6 +145,7 @@ import org.json.JSONException;
|
|||
import org.jsoup.nodes.Document;
|
||||
import org.jsoup.nodes.Element;
|
||||
import org.openintents.openpgp.AutocryptPeerUpdate;
|
||||
import org.openintents.openpgp.IOpenPgpService2;
|
||||
import org.openintents.openpgp.OpenPgpError;
|
||||
import org.openintents.openpgp.OpenPgpSignatureResult;
|
||||
import org.openintents.openpgp.util.OpenPgpApi;
|
||||
|
@ -1251,9 +1252,19 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|||
}
|
||||
});
|
||||
|
||||
String pkg = Helper.getOpenKeychainPackage(getContext());
|
||||
Log.i("Binding to " + pkg);
|
||||
pgpService = new OpenPgpServiceConnection(getContext(), pkg);
|
||||
final String pkg = Helper.getOpenKeychainPackage(getContext());
|
||||
Log.i("PGP binding to " + pkg);
|
||||
pgpService = new OpenPgpServiceConnection(getContext(), pkg, new OpenPgpServiceConnection.OnBound() {
|
||||
@Override
|
||||
public void onBound(IOpenPgpService2 service) {
|
||||
Log.i("PGP bound to " + pkg);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError(Exception ex) {
|
||||
Log.e("PGP", ex);
|
||||
}
|
||||
});
|
||||
pgpService.bindToService();
|
||||
|
||||
LocalBroadcastManager lbm = LocalBroadcastManager.getInstance(getContext());
|
||||
|
|
Loading…
Reference in a new issue