复用 Gson 对象
This commit is contained in:
@ -363,7 +363,7 @@ public class MessageDetailFragment extends NormalFragment implements OnCommentCa
|
||||
cacheObject.put("parent", cacheParent);
|
||||
}
|
||||
|
||||
CommentEntity commentEntity = new Gson().fromJson(cacheObject.toString(), CommentEntity.class);
|
||||
CommentEntity commentEntity = GsonUtils.fromJson(cacheObject.toString(), CommentEntity.class);
|
||||
if (mConcernEntity != null) {
|
||||
adapter.addNormalComment(commentEntity);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user