FIX: do not crash with missing fb_jpegturbo
Summary: : This prevents clients to crash if they exclude the fb_jpegturbo.so for any reason
@@ -40,7 +40,11 @@ public class ImagePipelineNativeLoader {
}
public static void load() {
+ try {
SoLoaderShim.loadLibrary("fb_jpegturbo");
+ } catch (UnsatisfiedLinkError ignore) {
+ // safe to ignore on clients that do not use features that depend on this
+ }
SoLoaderShim.loadLibrary("imagepipeline");
}
}
