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:
Chaohui Wang
2023-07-03 13:52:39 +08:00
parent de771725c4
commit 778c2dc3d5
17 changed files with 41 additions and 37 deletions

View File

@@ -79,7 +79,7 @@ public abstract class ApplicationListFragment extends DashboardFragment
@Override
public void buildApplicationList(Context context,
ApplicationFeatureProvider.ListOfAppsCallback callback) {
FeatureFactory.getFactory(context).getApplicationFeatureProvider(context)
FeatureFactory.getFeatureFactory().getApplicationFeatureProvider()
.listAppsWithAdminGrantedPermissions(mPermissions, callback);
}
@@ -120,8 +120,8 @@ public abstract class ApplicationListFragment extends DashboardFragment
@Override
public void buildApplicationList(Context context,
ApplicationFeatureProvider.ListOfAppsCallback callback) {
FeatureFactory.getFactory(context).getApplicationFeatureProvider(context).
listPolicyInstalledApps(callback);
FeatureFactory.getFeatureFactory()
.getApplicationFeatureProvider().listPolicyInstalledApps(callback);
}
}
}