Use annotation processing in Otto
This commit is contained in:
1 parent
362ec885fe
commit
59e4a15bd2
5 files changed
+6
-2
No files matched your search
@@ -7,6 +7,7 @@ import android.os.Looper;
|
||||
import android.preference.PreferenceManager;
|
||||
import android.support.annotation.NonNull;
|
||||
import com.squareup.otto.Bus;
|
||||
import com.squareup.otto.GeneratedHandlerFinder;
|
||||
import dagger.Module;
|
||||
import dagger.Provides;
|
||||
import jscl.JsclMathEngine;
|
||||
@@ -119,6 +120,7 @@ public class AppModule {
|
||||
private final Handler handler;
|
||||
|
||||
public AppBus(@Nonnull Handler handler) {
|
||||
super(new GeneratedHandlerFinder());
|
||||
this.handler = handler;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user