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/recommend/RecommendAdapter.java | 13 +++---------- 1 files changed, 3 insertions(+), 10 deletions(-) diff --git a/MGVideo/src/com/mugua/mgvideo/ui/recommend/RecommendAdapter.java b/MGVideo/src/com/mugua/mgvideo/ui/recommend/RecommendAdapter.java index 4403f1b..b6a8e93 100644 --- a/MGVideo/src/com/mugua/mgvideo/ui/recommend/RecommendAdapter.java +++ b/MGVideo/src/com/mugua/mgvideo/ui/recommend/RecommendAdapter.java @@ -31,9 +31,6 @@ import com.bumptech.glide.Glide; import com.bumptech.glide.load.engine.DiskCacheStrategy; import com.bumptech.glide.request.RequestOptions; -import com.google.gson.FieldNamingPolicy; -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; import com.lcjian.library.util.MarketUtils; import com.lcjian.library.util.common.StringUtils; import com.lcjian.library.widget.MyListView; @@ -41,6 +38,7 @@ import com.mugua.mgvideo.MGVideoApplication; import com.mugua.mgvideo.entity.HomeType; import com.mugua.mgvideo.entity.HomeVideo; +import com.yeshi.base.utils.JsonUtil; import com.yeshi.base.entity.video.VideoInfo; import com.yeshi.base.entity.video.VideoType; import com.mugua.mgvideo.service.DownLoadFileService; @@ -49,8 +47,6 @@ import com.mugua.mgvideo.ui.category.bean.HotStar; import com.mugua.mgvideo.ui.common.VideosLiveActivity; import com.yeshi.video.ui.VideoDetailActivity; -import com.mugua.mgvideo.util.AdPromptDialog; -import com.yeshi.base.utils.BeibeiConstant; import com.mugua.mgvideo.util.GlideCircleTransform; import com.yeshi.base.utils.downutil.ApkUtil; @@ -219,11 +215,8 @@ "com.mugua.mgvideo.ui.common.MVideosActivity")) {// 鍘诲ソ璇� mateAppMarket(intent, mHomeType); } else { - Gson gson = new GsonBuilder() - .setFieldNamingPolicy( - FieldNamingPolicy.UPPER_CAMEL_CASE) - .create(); - VideoType type = gson.fromJson( + + VideoType type = JsonUtil.videoGson.fromJson( mHomeType.getParams().replace( "\\" + "\"", "\""), VideoType.class); -- Gitblit v1.8.0