[Android] Fix VerifyError on Android 4

The class ReflectiveOperationException used in ExternalAPIModule was
introduced in API level 19.
pull/1988/head jitsi-meet_2450
Lyubo Marinov 8 years ago
parent fe8f383a41
commit f86f21beb2
  1. 5
      android/sdk/src/main/java/org/jitsi/meet/sdk/ExternalAPIModule.java

@ -25,6 +25,7 @@ import com.facebook.react.bridge.ReadableMapKeySetIterator;
import org.jitsi.meet.sdk.JitsiMeetView;
import org.jitsi.meet.sdk.JitsiMeetViewListener;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.util.HashMap;
@ -145,8 +146,8 @@ class ExternalAPIModule extends ReactContextBaseJavaModule {
if (method != null) {
try {
method.invoke(listener, toHashMap(data));
} catch (ReflectiveOperationException roe) {
throw new RuntimeException(roe);
} catch (IllegalAccessException | InvocationTargetException e) {
throw new RuntimeException(e);
}
}
}

Loading…
Cancel
Save