mirror of
https://github.com/android10/Android-CleanArchitecture.git
synced 2025-08-26 15:21:51 +08:00
fixed constructor of navigator removed provides-annotation for navigator
no need to use @provides for navigator since Dagger 2 can construct it by @inject-annotated constructor
This commit is contained in:
@ -45,10 +45,6 @@ public class ApplicationModule {
|
||||
return this.application;
|
||||
}
|
||||
|
||||
@Provides @Singleton Navigator provideNavigator() {
|
||||
return new Navigator();
|
||||
}
|
||||
|
||||
@Provides @Singleton ThreadExecutor provideThreadExecutor(JobExecutor jobExecutor) {
|
||||
return jobExecutor;
|
||||
}
|
||||
|
@ -29,7 +29,7 @@ import javax.inject.Singleton;
|
||||
public class Navigator {
|
||||
|
||||
@Inject
|
||||
public void Navigator() {
|
||||
public Navigator() {
|
||||
//empty
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user