Revert loadLibrary as static.

This commit is contained in:
pedroGitt 2016-10-26 18:12:38 +02:00
parent b0fc867bfe
commit d6824a4f49

View file

@ -16,13 +16,16 @@
package org.matrix.olm; package org.matrix.olm;
import android.util.Log; import android.util.Log;
/**
* Olm SDK entry point class.<br> An OlmManager instance must be created at first to enable native library load.
* <br><br>Detailed implementation guide is available at <a href="http://matrix.org/docs/guides/e2e_implementation.html">Implementing End-to-End Encryption in Matrix clients</a>.
*/
public class OlmManager { public class OlmManager {
private static final String LOG_TAG = "OlmManager"; private static final String LOG_TAG = "OlmManager";
public OlmManager() { static {
try { try {
java.lang.System.loadLibrary("olm"); java.lang.System.loadLibrary("olm");
} catch(UnsatisfiedLinkError e) { } catch(UnsatisfiedLinkError e) {