登录重构相关

This commit is contained in:
kehaoyuan
2017-12-01 17:44:09 +08:00
parent ce36dd4012
commit dba866e5c9
17 changed files with 106 additions and 477 deletions

View File

@ -19,6 +19,7 @@ import com.gh.gamecenter.adapter.viewholder.CommentViewHolder;
import com.gh.gamecenter.entity.CommentEntity;
import com.gh.gamecenter.entity.UserDataEntity;
import com.gh.gamecenter.entity.UserInfoEntity;
import com.gh.gamecenter.manager.UserManager;
import com.lightgame.utils.Utils;
import org.json.JSONException;
@ -283,7 +284,7 @@ public class CommentUtils {
}
//检查是否是自身评论
UserInfoEntity userInfo = LoginUtils.getUserInfo(mContext);
UserInfoEntity userInfo = UserManager.getInstance().getUserInfoEntity();
if (userDataEntity != null && userDataEntity.isCommentOwn() && userInfo != null) {
holder.commentUserNameTv.setText(userInfo.getName());
ImageUtils.Companion.display(holder.commentUserIconDv, userInfo.getIcon());