Remove context from powerUsageFeatureProvider
PowerUsageFeatureProviderImpl is created by using application context, no need pass context in when get. Bug: 286764889 Test: m Settings Change-Id: Iec81e98648fcb2f6a20978ef4ce164e1af50a804
This commit is contained in:
@@ -79,8 +79,6 @@ open class FeatureFactoryImpl : FeatureFactory() {
|
||||
)
|
||||
}
|
||||
|
||||
private val powerUsageFeatureProvider by lazy { PowerUsageFeatureProviderImpl(appContext) }
|
||||
|
||||
private val userFeatureProvider by lazy { UserFeatureProviderImpl(appContext) }
|
||||
|
||||
private val contextualCardFeatureProvider by lazy {
|
||||
@@ -92,7 +90,7 @@ open class FeatureFactoryImpl : FeatureFactory() {
|
||||
|
||||
override val metricsFeatureProvider by lazy { SettingsMetricsFeatureProvider() }
|
||||
|
||||
override fun getPowerUsageFeatureProvider(context: Context) = powerUsageFeatureProvider
|
||||
override val powerUsageFeatureProvider by lazy { PowerUsageFeatureProviderImpl(appContext) }
|
||||
|
||||
override val batteryStatusFeatureProvider by lazy {
|
||||
BatteryStatusFeatureProviderImpl(appContext)
|
||||
|
||||
Reference in New Issue
Block a user