am c42d4059
: Remove account for a managed user
* commit 'c42d4059b59848bef7bea550522e29d4ef95e18b': Remove account for a managed user
This commit is contained in:
committed by
Android Git Automerger
commit
46ad810047
@@ -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