From 21d1f69d6d7697c1eae6b4b0d5f0a441ec857de7 Mon Sep 17 00:00:00 2001 From: Stypox Date: Tue, 28 Jul 2020 10:48:54 +0200 Subject: [PATCH] Do not init ACRA if inside its own process https://github.com/ACRA/acra/wiki/Troubleshooting-Guide#applicationoncreate --- app/src/main/java/org/schabi/newpipe/App.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/org/schabi/newpipe/App.java b/app/src/main/java/org/schabi/newpipe/App.java index 64c1fdb1c..75228cefe 100644 --- a/app/src/main/java/org/schabi/newpipe/App.java +++ b/app/src/main/java/org/schabi/newpipe/App.java @@ -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)