Remove context from applicationFeatureProvider
ApplicationFeatureProvider is created by using application context, no need pass context in when get. Bug: 286764889 Test: m Settings Change-Id: I7f8dfe5716b7b55e0ff984f7603875d7896e2313
This commit is contained in:
@@ -66,15 +66,6 @@ import com.android.settingslib.spaprivileged.framework.common.devicePolicyManage
|
||||
* [FeatureFactory] implementation for AOSP Settings.
|
||||
*/
|
||||
open class FeatureFactoryImpl : FeatureFactory() {
|
||||
private val applicationFeatureProvider by lazy {
|
||||
ApplicationFeatureProviderImpl(
|
||||
appContext,
|
||||
appContext.packageManager,
|
||||
AppGlobals.getPackageManager(),
|
||||
appContext.devicePolicyManager,
|
||||
)
|
||||
}
|
||||
|
||||
private val dashboardFeatureProvider by lazy { DashboardFeatureProviderImpl(appContext) }
|
||||
|
||||
private val enterprisePrivacyFeatureProvider by lazy {
|
||||
@@ -120,7 +111,14 @@ open class FeatureFactoryImpl : FeatureFactory() {
|
||||
DockUpdaterFeatureProviderImpl()
|
||||
}
|
||||
|
||||
override fun getApplicationFeatureProvider(context: Context) = applicationFeatureProvider
|
||||
override val applicationFeatureProvider by lazy {
|
||||
ApplicationFeatureProviderImpl(
|
||||
appContext,
|
||||
appContext.packageManager,
|
||||
AppGlobals.getPackageManager(),
|
||||
appContext.devicePolicyManager,
|
||||
)
|
||||
}
|
||||
|
||||
override val localeFeatureProvider by lazy { LocaleFeatureProviderImpl() }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user