1、更改部分下载类,未完成

2、@#&@*#
This commit is contained in:
CsHeng
2017-06-29 11:17:01 +08:00
parent 5cbf06f6a6
commit f97ccd5c5d
126 changed files with 454 additions and 6379 deletions

View File

@ -3,19 +3,18 @@ package com.gh.gamecenter.adapter;
import android.content.Context;
import android.content.SharedPreferences;
import android.net.Uri;
import android.preference.PreferenceManager;
import android.support.v4.content.ContextCompat;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.RecyclerView.ViewHolder;
import android.view.View;
import android.view.ViewGroup;
import com.lightgame.adapter.BaseRecyclerAdapter;
import com.gh.common.constant.Config;
import com.gh.common.constant.ItemViewType;
import com.gh.common.util.CommentUtils;
import com.gh.common.util.ImageUtils;
import com.gh.common.util.PostCommentUtils;
import com.gh.common.util.Utils;
import com.lightgame.utils.Utils;
import com.gh.gamecenter.R;
import com.gh.gamecenter.adapter.viewholder.CommentViewHolder;
import com.gh.gamecenter.adapter.viewholder.FooterViewHolder;
@ -25,6 +24,7 @@ import com.gh.gamecenter.db.info.VoteInfo;
import com.gh.gamecenter.entity.CommentEntity;
import com.gh.gamecenter.retrofit.Response;
import com.gh.gamecenter.retrofit.RetrofitManager;
import com.lightgame.adapter.BaseRecyclerAdapter;
import org.json.JSONObject;
@ -63,7 +63,7 @@ public class CommentDetailAdapter extends BaseRecyclerAdapter<ViewHolder> {
mVoteDao = new VoteDao(context);
mCommentDao = new CommentDao(context);
mSharedPreferences = context.getSharedPreferences(Config.PREFERENCE, Context.MODE_PRIVATE);
mSharedPreferences = PreferenceManager.getDefaultSharedPreferences(mContext);
mUserName = mSharedPreferences.getString("user_name", null);
mUserIcon = mSharedPreferences.getString("user_icon", null);