Remove context from dashboardFeatureProvider

DashboardFeatureProviderImpl is created by using application context,
no need pass context in when get.

Bug: 286764889
Test: m Settings
Change-Id: Ia9672dfd9d3d71f64735cbc5979a6ad57c9429d3
This commit is contained in:
Chaohui Wang
2023-07-20 12:21:16 +08:00
parent 1ac510e4b1
commit 58f0ee30fc
8 changed files with 20 additions and 21 deletions

View File

@@ -67,8 +67,6 @@ import com.android.settingslib.spaprivileged.framework.common.devicePolicyManage
* [FeatureFactory] implementation for AOSP Settings.
*/
open class FeatureFactoryImpl : FeatureFactory() {
private val dashboardFeatureProvider by lazy { DashboardFeatureProviderImpl(appContext) }
private val enterprisePrivacyFeatureProvider by lazy {
EnterprisePrivacyFeatureProviderImpl(
appContext,
@@ -100,7 +98,7 @@ open class FeatureFactoryImpl : FeatureFactory() {
override val batterySettingsFeatureProvider by lazy { BatterySettingsFeatureProviderImpl() }
override fun getDashboardFeatureProvider(context: Context) = dashboardFeatureProvider
override val dashboardFeatureProvider by lazy { DashboardFeatureProviderImpl(appContext) }
override val dockUpdaterFeatureProvider: DockUpdaterFeatureProvider by lazy {
DockUpdaterFeatureProviderImpl()