mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-21 20:47:03 -05:00
Fix tests failing after upgrading EventBus
This commit is contained in:
parent
872af276ea
commit
e50c683159
2 changed files with 15 additions and 2 deletions
|
@ -40,12 +40,16 @@ public class App extends Application {
|
||||||
componentInjector =
|
componentInjector =
|
||||||
new ComponentReflectionInjector<>(AppComponent.class, applicationComponent);
|
new ComponentReflectionInjector<>(AppComponent.class, applicationComponent);
|
||||||
|
|
||||||
|
setupEventBus();
|
||||||
|
|
||||||
|
ACRA.init(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void setupEventBus() {
|
||||||
EventBus.builder()
|
EventBus.builder()
|
||||||
.addIndex(new EventBusIndex())
|
.addIndex(new EventBusIndex())
|
||||||
.logNoSubscriberMessages(false)
|
.logNoSubscriberMessages(false)
|
||||||
.installDefaultEventBus();
|
.installDefaultEventBus();
|
||||||
|
|
||||||
ACRA.init(this);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public AppComponent getComponent() {
|
public AppComponent getComponent() {
|
||||||
|
|
9
app/src/test/java/eu/kanade/tachiyomi/TestApp.java
Normal file
9
app/src/test/java/eu/kanade/tachiyomi/TestApp.java
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
package eu.kanade.tachiyomi;
|
||||||
|
|
||||||
|
public class TestApp extends App {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void setupEventBus() {
|
||||||
|
// Do nothing
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue