summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/accounts
diff options
context:
space:
mode:
authorAlexandra Gherghina <alexgherghina@google.com>2014-07-04 11:37:17 +0100
committerAlexandra Gherghina <alexgherghina@google.com>2014-07-17 19:57:43 +0000
commitc42d4059b59848bef7bea550522e29d4ef95e18b (patch)
treef34d7fce3a1da86b5d04348b05e68e907c2f1669 /src/com/android/settings/accounts
parent08ee22cb35eadfdacfbb010fc157b3e5febbdd6e (diff)
downloadpackages_apps_Settings-c42d4059b59848bef7bea550522e29d4ef95e18b.zip
packages_apps_Settings-c42d4059b59848bef7bea550522e29d4ef95e18b.tar.gz
packages_apps_Settings-c42d4059b59848bef7bea550522e29d4ef95e18b.tar.bz2
Remove account for a managed user
Bug: 16056552 Change-Id: Iad24856cab908ed40c32af799ca2c41fe85b6b45
Diffstat (limited to 'src/com/android/settings/accounts')
-rw-r--r--src/com/android/settings/accounts/AccountSyncSettings.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/settings/accounts/AccountSyncSettings.java b/src/com/android/settings/accounts/AccountSyncSettings.java
index 1bde8a3..7bfb6ea 100644
--- a/src/com/android/settings/accounts/AccountSyncSettings.java
+++ b/src/com/android/settings/accounts/AccountSyncSettings.java
@@ -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();