1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-06-26 07:03:20 +00:00

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)