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:
@@ -246,9 +246,7 @@ public class PowerUsageSummary extends PowerUsageBase implements
|
||||
|
||||
@VisibleForTesting
|
||||
void initFeatureProvider() {
|
||||
final Context context = getContext();
|
||||
mPowerFeatureProvider = FeatureFactory.getFactory(context)
|
||||
.getPowerUsageFeatureProvider(context);
|
||||
mPowerFeatureProvider = FeatureFactory.getFeatureFactory().getPowerUsageFeatureProvider();
|
||||
}
|
||||
|
||||
@VisibleForTesting
|
||||
|
||||
Reference in New Issue
Block a user