Always use soloader. Catching exception and re-trying hides errors
Summary: Soloader is safer than System load library, retrying with System load library just hides errors Reviewed By: lexs Differential Revision: D4243906 fbshipit-source-id: e4d691c9c49f3b9316f67e39b9f277657d78fb3c
This commit is contained in:
committed by
Facebook Github Bot
parent
97d524fa96
commit
6318801470
@@ -21,13 +21,7 @@ import com.facebook.soloader.SoLoader;
|
||||
public class CSSNode implements CSSNodeAPI<CSSNode> {
|
||||
|
||||
static {
|
||||
try {
|
||||
SoLoader.loadLibrary("csslayout");
|
||||
} catch (Exception ignored) {
|
||||
// The user probably didn't call SoLoader.init(). Fall back to System.loadLibrary() instead.
|
||||
System.out.println("Falling back to System.loadLibrary()");
|
||||
System.loadLibrary("csslayout");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user