Remove old accounts tile, replaced by a separate screen

Bug: 15815948
Bug: 15819268
Change-Id: I3b6978cff346c73cca1d6a2c209ffe4c71808244
This commit is contained in:
Alexandra Gherghina
2014-07-04 12:25:38 +01:00
parent 02701420bb
commit cfc7f9d960
4 changed files with 10 additions and 172 deletions

View File

@@ -171,9 +171,7 @@ final public class AuthenticatorHelper extends BroadcastReceiver {
return false;
}
public void onAccountsUpdated(Account[] accounts) {
// TODO: Revert to non-public once no longer needed in SettingsActivity
// See http://b/15819268
void onAccountsUpdated(Account[] accounts) {
updateAuthDescriptions(mContext);
if (accounts == null) {
accounts = AccountManager.get(mContext).getAccountsAsUser(mUserHandle.getIdentifier());
@@ -193,6 +191,7 @@ final public class AuthenticatorHelper extends BroadcastReceiver {
@Override
public void onReceive(final Context context, final Intent intent) {
// TODO: watch for package upgrades to invalidate cache; see http://b/7206643
final Account[] accounts = AccountManager.get(mContext)
.getAccountsAsUser(mUserHandle.getIdentifier());
onAccountsUpdated(accounts);