Do not init ACRA if inside its own process

https://github.com/ACRA/acra/wiki/Troubleshooting-Guide#applicationoncreate
This commit is contained in:
Stypox 2020-07-28 10:48:54 +02:00
parent 1b9f5989ef
commit 21d1f69d6d
No known key found for this signature in database
GPG key ID: 4BDF1B40A49FDD23

View file

@ -204,6 +204,10 @@ public class App extends Application {
* Should be overridden if MultiDex is enabled, since it has to be initialized before ACRA.
*/
protected void initACRA() {
if (ACRA.isACRASenderServiceProcess()) {
return;
}
try {
final CoreConfiguration acraConfig = new CoreConfigurationBuilder(this)
.setReportSenderFactoryClasses(REPORT_SENDER_FACTORY_CLASSES)