mirror of
https://github.com/mihonapp/mihon.git
synced 2025-10-24 03:58:56 +02:00
Upgrade to EventBus 3
This commit is contained in:
@@ -5,6 +5,7 @@ import android.content.Context;
|
||||
|
||||
import org.acra.ACRA;
|
||||
import org.acra.annotation.ReportsCrashes;
|
||||
import org.greenrobot.eventbus.EventBus;
|
||||
|
||||
import eu.kanade.tachiyomi.injection.ComponentReflectionInjector;
|
||||
import eu.kanade.tachiyomi.injection.component.AppComponent;
|
||||
@@ -39,6 +40,11 @@ public class App extends Application {
|
||||
componentInjector =
|
||||
new ComponentReflectionInjector<>(AppComponent.class, applicationComponent);
|
||||
|
||||
EventBus.builder()
|
||||
.addIndex(new EventBusIndex())
|
||||
.logNoSubscriberMessages(false)
|
||||
.installDefaultEventBus();
|
||||
|
||||
ACRA.init(this);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user