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:
Chaohui Wang
2023-08-02 17:25:41 +08:00
parent 26b38e7d33
commit 515c0b8e3a
7 changed files with 10 additions and 11 deletions

View File

@@ -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() }