Remove context from userFeatureProvider
UserFeatureProviderImpl is created by using application context, no need pass context in when get. Bug: 286764889 Test: m Settings Change-Id: I80ac7124c3278399e562d4d7d49d1847847b92af
This commit is contained in:
@@ -79,8 +79,6 @@ open class FeatureFactoryImpl : FeatureFactory() {
|
||||
)
|
||||
}
|
||||
|
||||
private val userFeatureProvider by lazy { UserFeatureProviderImpl(appContext) }
|
||||
|
||||
private val contextualCardFeatureProvider by lazy {
|
||||
ContextualCardFeatureProviderImpl(appContext)
|
||||
}
|
||||
@@ -130,7 +128,7 @@ open class FeatureFactoryImpl : FeatureFactory() {
|
||||
SuggestionFeatureProviderImpl()
|
||||
}
|
||||
|
||||
override fun getUserFeatureProvider(context: Context) = userFeatureProvider
|
||||
override val userFeatureProvider by lazy { UserFeatureProviderImpl(appContext) }
|
||||
|
||||
override val slicesFeatureProvider by lazy { SlicesFeatureProviderImpl() }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user