fix(android) initialize the fatal exception handler early

This commit is contained in:
Saúl Ibarra Corretgé 2022-02-14 17:19:24 +01:00 committed by Saúl Ibarra Corretgé
parent eaba4798db
commit 6aa0e3902a
2 changed files with 5 additions and 5 deletions

View File

@ -22,7 +22,7 @@ import androidx.startup.Initializer;
import com.facebook.soloader.SoLoader;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class JitsiInitializer implements Initializer<Boolean> {
@ -31,12 +31,15 @@ public class JitsiInitializer implements Initializer<Boolean> {
@Override
public Boolean create(@NonNull Context context) {
SoLoader.init(context, /* native exopackage */ false);
// Register our uncaught exception handler.
JitsiMeetUncaughtExceptionHandler.register();
return true;
}
@NonNull
@Override
public List<Class<? extends Initializer<?>>> dependencies() {
return new ArrayList<>();
return Collections.emptyList();
}
}

View File

@ -241,8 +241,5 @@ class ReactInstanceManagerHolder {
.setUseDeveloperSupport(BuildConfig.DEBUG)
.setInitialLifecycleState(LifecycleState.RESUMED)
.build();
// Register our uncaught exception handler.
JitsiMeetUncaughtExceptionHandler.register();
}
}