Show work profile apps only on app list.
For the work profile drilldown, we used to show all apps when the user drilled down into the categories. This makes it so that the drill down only shows the work apps when that deep. Change-Id: I492cd3e9b9b923b87b68645a871dcfb2b91b4f95 Fixes: 62963093 Test: Settings robotest
This commit is contained in:
@@ -101,8 +101,13 @@ public class StorageProfileFragment extends DashboardFragment
|
||||
protected List<AbstractPreferenceController> getPreferenceControllers(Context context) {
|
||||
final List<AbstractPreferenceController> controllers = new ArrayList<>();
|
||||
final StorageManager sm = context.getSystemService(StorageManager.class);
|
||||
mPreferenceController = new StorageItemPreferenceController(context, this,
|
||||
mVolume, new StorageManagerVolumeProvider(sm));
|
||||
mPreferenceController =
|
||||
new StorageItemPreferenceController(
|
||||
context,
|
||||
this,
|
||||
mVolume,
|
||||
new StorageManagerVolumeProvider(sm),
|
||||
/* isWorkProfile */ true);
|
||||
controllers.add(mPreferenceController);
|
||||
return controllers;
|
||||
}
|
||||
|
Reference in New Issue
Block a user