Auth: Make account visible after creation when configured to do so (#2235)
This commit is contained in:
parent
b94dace3db
commit
c9ae0f6f4e
1 changed files with 3 additions and 0 deletions
|
|
@ -353,6 +353,9 @@ public class LoginActivity extends AssistantActivity {
|
|||
String accountId = PeopleManager.loadUserInfo(LoginActivity.this, account);
|
||||
if (!TextUtils.isEmpty(accountId))
|
||||
accountManager.setUserData(account, "GoogleUserId", accountId);
|
||||
if (isAuthVisible(LoginActivity.this) && SDK_INT >= 26) {
|
||||
accountManager.setAccountVisibility(account, PACKAGE_NAME_KEY_LEGACY_NOT_VISIBLE, VISIBILITY_USER_MANAGED_VISIBLE);
|
||||
}
|
||||
checkin(true);
|
||||
finish();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue