修复了文章评论举报问题

This commit is contained in:
chenjuntao
2018-10-26 18:02:07 +08:00
parent 8702440474
commit 36b0676bfc
15 changed files with 329 additions and 61 deletions

View File

@ -314,7 +314,6 @@ public class CommentUtils {
CheckLoginUtils.checkLogin(context, () -> showAnswerReportDialog(answerId, commentEntity, context));
break;
case "查看对话":
if (TextUtils.isEmpty(articleId)) {
context.startActivity(CommentDetailActivity.getAnswerCommentIntent(context, commentEntity.getId(), answerId));
} else {
@ -370,7 +369,11 @@ public class CommentUtils {
@Override
public void postFailed(Throwable error) {
Utils.toast(context, error.toString());
if (error != null) {
Utils.toast(context, "举报失败" + error.getMessage());
} else {
Utils.toast(context, "举报失败,请稍候重试");
}
}
});
reportTypeDialog.cancel();