示例#1
0
        public void onReceiveFeed(Intent intent) { // 发送or删除时
          FeedItem feedItem = getFeed(intent);
          if (feedItem == null || !CommonUtils.isMyself(mUser)) {
            return;
          }

          BroadcastUtils.BROADCAST_TYPE type = getType(intent);
          if (BroadcastUtils.BROADCAST_TYPE.TYPE_FEED_POST == type) {
            updateFeedTextView(++mUser.feedCount);
          }
        }
示例#2
0
        @Override
        public void onResult(final int status) {
          if (mPresenter.isUpdateFansCountTextView()) {
            CommonUtils.runOnUIThread(
                UserInfoActivity.this,
                new Runnable() {

                  @Override
                  public void run() {
                    mFansCountTextView.setText(String.valueOf(status));
                  }
                });
          }
        }
 @Override
 protected void dealResult(FansResponse response, boolean fromRefresh) {
   if (NetworkUtils.handleResponseComm(response)) {
     return;
   }
   List<CommUser> users = response.result;
   if (CommonUtils.isListEmpty(users) && fromRefresh) {
     if (response.errCode == ErrorCode.NO_ERROR) {
       mActiveUserFgView.getBindDataSource().clear();
       mActiveUserFgView.notifyDataSetChanged();
     }
     mActiveUserFgView.showEmptyView();
     return;
   } else {
     mActiveUserFgView.hideEmptyView();
   }
   super.dealResult(response, fromRefresh);
 }