Catch unsatisfied link error on start if webrtc so isn't found

// FREEBIE
This commit is contained in:
Moxie Marlinspike 2017-07-21 16:29:03 -07:00
parent 5be246ec8f
commit e452862813

View File

@ -159,6 +159,7 @@ public class ApplicationContext extends MultiDexApplication implements Dependenc
} }
private void initializeWebRtc() { private void initializeWebRtc() {
try {
Set<String> HARDWARE_AEC_BLACKLIST = new HashSet<String>() {{ Set<String> HARDWARE_AEC_BLACKLIST = new HashSet<String>() {{
add("Pixel"); add("Pixel");
add("Pixel XL"); add("Pixel XL");
@ -181,6 +182,9 @@ public class ApplicationContext extends MultiDexApplication implements Dependenc
PeerConnectionFactory.initializeAndroidGlobals(this, true, true, true); PeerConnectionFactory.initializeAndroidGlobals(this, true, true, true);
} }
} catch (UnsatisfiedLinkError e) {
Log.w(TAG, e);
}
} }
private void initializeCircumvention() { private void initializeCircumvention() {