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