Merge change 20718

* changes:
  Renew Unread Counts and accounts on Resume See bug 2041204
This commit is contained in:
Android (Google) Code Review 2009-08-12 01:05:45 -07:00
commit 5c3f1f8cb7

View File

@ -214,6 +214,12 @@ public class AccountFolderList extends ListActivity
Controller.getInstance(getApplication()).addResultCallback(mControllerCallback); Controller.getInstance(getApplication()).addResultCallback(mControllerCallback);
if (mLoadAccountsTask != null &&
mLoadAccountsTask.getStatus() != LoadAccountsTask.Status.FINISHED) {
mLoadAccountsTask.cancel(true);
}
mLoadAccountsTask = (LoadAccountsTask) new LoadAccountsTask().execute();
// TODO: What updates do we need to auto-trigger, now that we have mailboxes in view? // TODO: What updates do we need to auto-trigger, now that we have mailboxes in view?
} }