Remove context from enterprisePrivacyFeatureProvider

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

Bug: 286764889
Test: m Settings
Change-Id: I346f2b0ccbb0590f26954603ab630132cd8be63f
This commit is contained in:
Chaohui Wang
2023-07-17 12:03:05 +08:00
parent b042f81e34
commit 3cdf5b9be9
19 changed files with 43 additions and 50 deletions

View File

@@ -35,8 +35,8 @@ public class AlwaysOnVpnCurrentUserPreferenceController
public AlwaysOnVpnCurrentUserPreferenceController(Context context) {
super(context);
mFeatureProvider = FeatureFactory.getFactory(context)
.getEnterprisePrivacyFeatureProvider(context);
mFeatureProvider = FeatureFactory.getFeatureFactory()
.getEnterprisePrivacyFeatureProvider();
mDevicePolicyManager = context.getSystemService(DevicePolicyManager.class);
}