Include disabled managed profiles in Accounts page

At the moment we include disabled profiles when deciding
whether the Work section needs to be added, and then only
include enabled ones when searching for the managed profile's
user handle

Change-Id: I96b0c36aad6b9326abc2992fa3309716f5cd1e74
Fix: 62021410
Test: m RunSettingsRoboTests
This commit is contained in:
Esteban Talavera
2017-05-30 16:48:08 +01:00
parent 0a6d61883c
commit 9b86e9c822
3 changed files with 43 additions and 15 deletions

View File

@@ -27,7 +27,7 @@ public class AutoSyncWorkDataPreferenceController extends AutoSyncPersonalDataPr
public AutoSyncWorkDataPreferenceController(Context context, Fragment parent) {
super(context, parent);
mUserHandle = Utils.getManagedProfile(mUserManager);
mUserHandle = Utils.getManagedProfileWithDisabled(mUserManager);
}
@Override