From fd0097a37e24c771d5ad271135e48e8f52e325e0 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期二, 21 十二月 2021 16:59:55 +0800 Subject: [PATCH] 3.10.9 --- BuWanVideo/src/com/weikou/beibeivideo/ui/common/VideosFragment.java | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/BuWanVideo/src/com/weikou/beibeivideo/ui/common/VideosFragment.java b/BuWanVideo/src/com/weikou/beibeivideo/ui/common/VideosFragment.java index 8596b14..be5a5b5 100644 --- a/BuWanVideo/src/com/weikou/beibeivideo/ui/common/VideosFragment.java +++ b/BuWanVideo/src/com/weikou/beibeivideo/ui/common/VideosFragment.java @@ -24,6 +24,7 @@ import com.weikou.beibeivideo.entity.VideoType; import com.weikou.beibeivideo.ui.video.VideoColumn2Adapter; import com.weikou.beibeivideo.util.DimenUtils; +import com.weikou.beibeivideo.util.JsonUtil; import com.weikou.beibeivideo.util.UserUtil; import com.weikou.beibeivideo.util.ui.DividerItemDecoration; import com.weikou.beibeivideo.R; @@ -201,10 +202,7 @@ throws Exception { if (jsonObject.getBoolean("IsPost")) { iv_download_failure.setVisibility(View.GONE); - Gson gson = new GsonBuilder().setFieldNamingPolicy( - FieldNamingPolicy.UPPER_CAMEL_CASE) - .create(); - List<VideoInfo> videoInfos = gson.fromJson( + List<VideoInfo> videoInfos = JsonUtil.videoGson.fromJson( jsonObject.getJSONObject("Data") .getJSONArray("data").toString(), new TypeToken<List<VideoInfo>>() { -- Gitblit v1.8.0