Example #1
0
 @Override
 protected void report() {
   String loginedUid = CommConfig.getConfig().loginedUser.id;
   if (mFeedItem.creator.id.equals(loginedUid)) {
     ToastMsg.showShortMsgByResName("umeng_comm_do_not_spam_yourself_content");
     return;
   }
   mPresenter.showReportConfirmDialog();
 }
Example #2
0
 public void setFeedItem(FeedItem feedItem) {
   mFeedItem = feedItem;
   mPresenter.setFeedItem(feedItem);
   // 自己不能举报自己.[注意:考虑来自于推送的情况]
   if (mFeedItem.creator != null
       && CommConfig.getConfig().loginedUser.id.equals(mFeedItem.creator.id)) {
     mReportView.setVisibility(View.GONE);
   } else {
     mReportView.setVisibility(View.VISIBLE);
   }
   changeBackground();
   updateFavoriteBtnState();
 }
Example #3
0
 public void attachView(MvpFeedDetailActivityView view) {
   mPresenter.setActivityView(view);
 }
Example #4
0
 public FeedActionDialog(Context context) {
   super(context);
   mPresenter = new FeedDetailActivityPresenter();
   mPresenter.attach(context);
 }
Example #5
0
 @Override
 protected void reportUser() {
   mPresenter.showReportUserConfirmDialog();
 }