Remove account for a managed user
Bug: 16056552 Change-Id: Iad24856cab908ed40c32af799ca2c41fe85b6b45
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user