Add number of enterprise-installed apps to Privacy Settings page
This CL adds information about the number of apps that were installed by the admin to the Enterprise Privacy Settings page. Test: make RunSettingsRoboTests Bug: 32692748 Change-Id: Ib710a1249db6d285da962122fd3dfb35a43752a1
This commit is contained in:
@@ -42,15 +42,16 @@ public class ApplicationFeatureProviderImpl implements ApplicationFeatureProvide
|
||||
}
|
||||
|
||||
@Override
|
||||
public void calculateNumberOfInstalledApps(NumberOfInstalledAppsCallback callback) {
|
||||
new AllUserInstalledAppCounter(callback).execute();
|
||||
public void calculateNumberOfInstalledApps(int installReason,
|
||||
NumberOfInstalledAppsCallback callback) {
|
||||
new AllUserInstalledAppCounter(installReason, callback).execute();
|
||||
}
|
||||
|
||||
private class AllUserInstalledAppCounter extends InstalledAppCounter {
|
||||
private NumberOfInstalledAppsCallback mCallback;
|
||||
|
||||
AllUserInstalledAppCounter(NumberOfInstalledAppsCallback callback) {
|
||||
super(mContext, ApplicationFeatureProviderImpl.this.mPm);
|
||||
AllUserInstalledAppCounter(int installReason, NumberOfInstalledAppsCallback callback) {
|
||||
super(mContext, installReason, ApplicationFeatureProviderImpl.this.mPm);
|
||||
mCallback = callback;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user