Skip to content

Commit

Permalink
Inject nonnullable factory from DesignerNewsSearchComponent
Browse files Browse the repository at this point in the history
  • Loading branch information
florina-muntenescu committed Apr 16, 2019
1 parent 368320d commit f1dae3b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ import io.plaidapp.core.interfaces.SearchDataSourceFactory
interface DesignerNewsSearchComponent {

@FeatureScope
fun factory(): SearchDataSourceFactory?
fun factory(): SearchDataSourceFactory
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import io.plaidapp.designernews.dagger.DesignerNewsPreferencesModule

object DesignerNewsSearchFactoryProvider : SearchFactoryProvider {

override fun getFactory(context: Context): SearchDataSourceFactory? {
override fun getFactory(context: Context): SearchDataSourceFactory {
return DaggerDesignerNewsSearchComponent.builder()
.designerNewsPreferencesModule(
DesignerNewsPreferencesModule(context)
Expand Down

0 comments on commit f1dae3b

Please sign in to comment.