From 760aee20870a34e6130a1c12237c5b747e2b00bd Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期五, 28 一月 2022 12:58:40 +0800 Subject: [PATCH] 隐私合规,青少年模式,64位兼容 --- MGVideo/src/com/mugua/mgvideo/ui/mine/SystemMessageActivity.java | 10 ++-------- 1 files changed, 2 insertions(+), 8 deletions(-) diff --git a/MGVideo/src/com/mugua/mgvideo/ui/mine/SystemMessageActivity.java b/MGVideo/src/com/mugua/mgvideo/ui/mine/SystemMessageActivity.java index c7cae28..69ae3d5 100644 --- a/MGVideo/src/com/mugua/mgvideo/ui/mine/SystemMessageActivity.java +++ b/MGVideo/src/com/mugua/mgvideo/ui/mine/SystemMessageActivity.java @@ -32,15 +32,12 @@ import android.widget.TextView; import android.widget.Toast; -import com.google.gson.FieldNamingPolicy; -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; import com.google.gson.reflect.TypeToken; import com.lcjian.library.util.RefreshLayout; import com.lcjian.library.util.common.DateUtils; import com.lcjian.library.util.common.StringUtils; import com.mugua.mgvideo.R; -import com.umeng.analytics.MobclickAgent; +import com.yeshi.base.utils.JsonUtil; import com.yeshi.base.utils.http.BasicTextHttpResponseHandler; import com.mugua.mgvideo.MGVideoAPI; import com.mugua.mgvideo.db.MessageTable; @@ -239,10 +236,7 @@ Header[] headers, JSONObject jsonObject) throws Exception { if (jsonObject.optBoolean("IsPost")) { - Gson gson = new GsonBuilder().setFieldNamingPolicy( - FieldNamingPolicy.UPPER_CAMEL_CASE) - .create(); - List<CommentReply> comments = gson.fromJson( + List<CommentReply> comments = JsonUtil.videoGson.fromJson( jsonObject.getJSONObject("Data") .getJSONArray("data").toString(), new TypeToken<List<CommentReply>>() { -- Gitblit v1.8.0