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