根据接口字段变动修改回答评论列表
This commit is contained in:
@ -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;
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user