@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(); }
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(); }
public void attachView(MvpFeedDetailActivityView view) { mPresenter.setActivityView(view); }
public FeedActionDialog(Context context) { super(context); mPresenter = new FeedDetailActivityPresenter(); mPresenter.attach(context); }
@Override protected void reportUser() { mPresenter.showReportUserConfirmDialog(); }