am 692b03c4: am 46ad8100: am c42d4059: Remove account for a managed user

* commit '692b03c49ecdbb98f913ee90025f9732fa3e7eba':
  Remove account for a managed user
This commit is contained in:
Alexandra Gherghina
2014-07-17 21:59:57 +00:00
committed by Android Git Automerger

View File

@@ -93,7 +93,7 @@ public class AccountSyncSettings extends AccountPreferenceBase {
// TODO: We need an API to remove an account from a different user.
// See: http://b/15466880
AccountManager.get(AccountSyncSettings.this.getActivity())
.removeAccount(mAccount,
.removeAccountAsUser(mAccount,
new AccountManagerCallback<Boolean>() {
@Override
public void run(AccountManagerFuture<Boolean> future) {
@@ -120,7 +120,7 @@ public class AccountSyncSettings extends AccountPreferenceBase {
finish();
}
}
}, null);
}, null, mUserHandle);
}
})
.create();