diff --git a/app/src/main/java/eu/kanade/tachiyomi/App.java b/app/src/main/java/eu/kanade/tachiyomi/App.java index 1a2ef055c..63dfa0cc7 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/App.java +++ b/app/src/main/java/eu/kanade/tachiyomi/App.java @@ -40,12 +40,16 @@ public class App extends Application { componentInjector = new ComponentReflectionInjector<>(AppComponent.class, applicationComponent); + setupEventBus(); + + ACRA.init(this); + } + + protected void setupEventBus() { EventBus.builder() .addIndex(new EventBusIndex()) .logNoSubscriberMessages(false) .installDefaultEventBus(); - - ACRA.init(this); } public AppComponent getComponent() { diff --git a/app/src/test/java/eu/kanade/tachiyomi/TestApp.java b/app/src/test/java/eu/kanade/tachiyomi/TestApp.java new file mode 100644 index 000000000..ba670b624 --- /dev/null +++ b/app/src/test/java/eu/kanade/tachiyomi/TestApp.java @@ -0,0 +1,9 @@ +package eu.kanade.tachiyomi; + +public class TestApp extends App { + + @Override + protected void setupEventBus() { + // Do nothing + } +}