// 刷新用户资料:包括节点收藏,话题收藏等 public void initAccount() { if (mNavigationDrawerFragment.getCurrentSelectedPosition() != 4) AccountUtils.refreshFavoriteNodes(this, null); AccountUtils.refreshNotificationCount( this, new AccountUtils.OnAccountNotificationCountListener() { @Override public void onAccountNotificationCount(int count) { MessageUtils.showMiddleToast(MainActivity.this, "你有 " + count + " 条未读提醒"); } }); }