From 10e607ac51dcc42fa1b54bacb698beed43750de7 Mon Sep 17 00:00:00 2001 From: steckbrief Date: Mon, 9 May 2016 20:41:58 +0200 Subject: XmppConnectionService.markMessage moved to MessageUtil XmppConnectionService.attachLocationToConversation moved to ConversationUtil --- .../java/de/thedevstack/conversationsplus/crypto/PgpEngine.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/main/java/de/thedevstack/conversationsplus/crypto/PgpEngine.java') diff --git a/src/main/java/de/thedevstack/conversationsplus/crypto/PgpEngine.java b/src/main/java/de/thedevstack/conversationsplus/crypto/PgpEngine.java index ee6af84f..bba52954 100644 --- a/src/main/java/de/thedevstack/conversationsplus/crypto/PgpEngine.java +++ b/src/main/java/de/thedevstack/conversationsplus/crypto/PgpEngine.java @@ -33,12 +33,18 @@ import de.thedevstack.conversationsplus.ui.UiCallback; public class PgpEngine { private OpenPgpApi api; private XmppConnectionService mXmppConnectionService; + private static PgpEngine INSTANCE; public PgpEngine(OpenPgpApi api, XmppConnectionService service) { this.api = api; this.mXmppConnectionService = service; + INSTANCE = this; } + public static PgpEngine getInstance() { + return INSTANCE; + } + public void decrypt(final Message message, final UiCallback callback) { Intent params = new Intent(); params.setAction(OpenPgpApi.ACTION_DECRYPT_VERIFY); -- cgit v1.2.3