修复了文章评论举报问题
This commit is contained in:
@ -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();
|
||||
|
||||
Reference in New Issue
Block a user