Merge "Fix crash when removing an account." into jb-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
6e9e519560
@@ -98,6 +98,10 @@ public class AccountSyncSettings extends AccountPreferenceBase {
|
|||||||
.removeAccount(mAccount,
|
.removeAccount(mAccount,
|
||||||
new AccountManagerCallback<Boolean>() {
|
new AccountManagerCallback<Boolean>() {
|
||||||
public void run(AccountManagerFuture<Boolean> future) {
|
public void run(AccountManagerFuture<Boolean> future) {
|
||||||
|
// If already out of this screen, don't proceed.
|
||||||
|
if (!AccountSyncSettings.this.isResumed()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
boolean failed = true;
|
boolean failed = true;
|
||||||
try {
|
try {
|
||||||
if (future.getResult() == true) {
|
if (future.getResult() == true) {
|
||||||
|
Reference in New Issue
Block a user