Merge "Fix issue for new account not being shown in work profile."
This commit is contained in:
committed by
Android (Google) Code Review
commit
3f4056212f
@@ -299,6 +299,11 @@ public class AccountPreferenceController extends PreferenceController
|
||||
final ProfileData data = mProfiles.get(userInfo.id);
|
||||
if (data != null) {
|
||||
data.pendingRemoval = false;
|
||||
if (userInfo.isEnabled()) {
|
||||
// recreate the authentication helper to refresh the list of enabled accounts
|
||||
data.authenticatorHelper =
|
||||
new AuthenticatorHelper(mContext, userInfo.getUserHandle(), this);
|
||||
}
|
||||
return;
|
||||
}
|
||||
final Context context = mContext;
|
||||
|
Reference in New Issue
Block a user