根据接口字段变动修改回答评论列表

This commit is contained in:
chenjuntao
2018-03-29 18:18:26 +08:00
parent c0c0ef979d
commit 224092b30a
10 changed files with 30 additions and 16 deletions

View File

@ -152,7 +152,7 @@ public class CommentUtils {
}
public static void showAnswerCommentOptions(final CommentEntity commentEntity, final Context context,
final OnCommentCallBackListener listener, final String id, boolean showConversation) {
final OnCommentCallBackListener listener, final String id, boolean showConversation, String answerId) {
final Dialog dialog = new Dialog(context);
@ -170,7 +170,7 @@ public class CommentUtils {
dialogType.add("复制");
dialogType.add("举报");
if (commentEntity.getParent() != null && showConversation) {
if (commentEntity.getParentUser() != null && showConversation) {
dialogType.add("查看对话");
}
@ -209,7 +209,7 @@ public class CommentUtils {
break;
case "查看对话":
context.startActivity(CommentDetailActivity.getAnswerCommentIntent(context, commentEntity.getId()));
context.startActivity(CommentDetailActivity.getAnswerCommentIntent(context, commentEntity.getId(), answerId));
break;
}
});