@Override public void onReceive(Context context, Intent intent) { yibo = (YiBoApplication) context.getApplicationContext(); if (!yibo.isUpdatesEnabled()) { return; } if (ListUtil.isEmpty(accountList)) { return; } for (LocalAccount account : accountList) { Cache cache = CacheManager.getInstance().getCache(account); AdapterCollectionCache adapterCache = (AdapterCollectionCache) cache; if (adapterCache != null) { QueryRemindCountTask remindCountTask = new QueryRemindCountTask(adapterCache); remindCountTask.execute(); } } if (Constants.DEBUG) Log.v(TAG, "auto update receiver"); }