。。。
This commit is contained in:
@ -82,7 +82,7 @@ public class MessageDetailActivity extends BaseActivity {
|
||||
|
||||
mCommentDao = new CommentDao(this);
|
||||
|
||||
adapter = new MessageDetailAdapter(this);
|
||||
adapter = new MessageDetailAdapter(this, mCommentDao);
|
||||
mLayoutManager = new LinearLayoutManager(this);
|
||||
mMessageDetailRv.setLayoutManager(mLayoutManager);
|
||||
mMessageDetailRv.setAdapter(adapter);
|
||||
@ -210,8 +210,8 @@ public class MessageDetailActivity extends BaseActivity {
|
||||
mMessageDetailEt.setText("");
|
||||
setSoftInput(false);
|
||||
|
||||
mCommentDao.add(new CommentInfo(commentId));//添加评论id到数据库, 后续判断是否是自身评论
|
||||
try {
|
||||
mCommentDao.add(new CommentInfo(response.getString("_id")));//添加评论id到数据库, 后续判断是否是自身评论
|
||||
JSONObject cacheObject = new JSONObject();
|
||||
JSONObject cacheUser = new JSONObject();
|
||||
cacheUser.put("_id", TokenUtils.getDeviceId(MessageDetailActivity.this));
|
||||
|
||||
Reference in New Issue
Block a user