Refresh authenticator info when accounts change.

There may be newly installed authenticators, so refresh them when
accounts change.

Bug: 7280043
Change-Id: Ic173970c815950526c77a2653e7fae4551948f13
This commit is contained in:
Jeff Sharkey
2012-10-03 16:48:17 -07:00
parent 347188667b
commit 9ff79c19bd

View File

@@ -750,6 +750,8 @@ public class Settings extends PreferenceActivity
@Override @Override
public void onAccountsUpdated(Account[] accounts) { public void onAccountsUpdated(Account[] accounts) {
// TODO: watch for package upgrades to invalidate cache; see 7206643
mAuthenticatorHelper.updateAuthDescriptions(this);
mAuthenticatorHelper.onAccountsUpdated(this, accounts); mAuthenticatorHelper.onAccountsUpdated(this, accounts);
invalidateHeaders(); invalidateHeaders();
} }