From d6824a4f499e83a31181b22b8be1e31ce1670277 Mon Sep 17 00:00:00 2001 From: pedroGitt Date: Wed, 26 Oct 2016 18:12:38 +0200 Subject: Revert loadLibrary as static. --- .../OlmLibSdk/olm-sdk/src/main/java/org/matrix/olm/OlmManager.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'java/android/OlmLibSdk/olm-sdk/src/main') diff --git a/java/android/OlmLibSdk/olm-sdk/src/main/java/org/matrix/olm/OlmManager.java b/java/android/OlmLibSdk/olm-sdk/src/main/java/org/matrix/olm/OlmManager.java index 403b4b3..21734dc 100644 --- a/java/android/OlmLibSdk/olm-sdk/src/main/java/org/matrix/olm/OlmManager.java +++ b/java/android/OlmLibSdk/olm-sdk/src/main/java/org/matrix/olm/OlmManager.java @@ -16,13 +16,16 @@ package org.matrix.olm; - import android.util.Log; +/** + * Olm SDK entry point class.
An OlmManager instance must be created at first to enable native library load. + *

Detailed implementation guide is available at Implementing End-to-End Encryption in Matrix clients. + */ public class OlmManager { private static final String LOG_TAG = "OlmManager"; - public OlmManager() { + static { try { java.lang.System.loadLibrary("olm"); } catch(UnsatisfiedLinkError e) { -- cgit v1.2.3